]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
7 years agoSome code improvements
Tobia De Koninck [Fri, 7 Jul 2017 21:12:28 +0000 (23:12 +0200)]
Some code improvements

Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
7 years agoAdd tests
Tobia De Koninck [Sun, 2 Jul 2017 12:20:44 +0000 (14:20 +0200)]
Add tests

Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
7 years agoFix tests
Tobia De Koninck [Sun, 2 Jul 2017 09:33:59 +0000 (11:33 +0200)]
Fix tests

Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
7 years agoPrivacy enhancements for contacts menu
Tobia De Koninck [Sun, 2 Jul 2017 09:02:18 +0000 (11:02 +0200)]
Privacy enhancements for contacts menu

 - Groups, which are excluded from sharing should not see local users at all
 - If sharing is restricted to users own groups, he should only see contacts from his groups:

Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 18 Sep 2017 00:08:41 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 17 Sep 2017 00:08:34 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 16 Sep 2017 00:08:34 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 15 Sep 2017 00:08:17 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 14 Sep 2017 00:08:21 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex v12.0.3RC2
Nextcloud bot [Wed, 13 Sep 2017 00:08:21 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6472 from nextcloud/rc2
Roeland Jago Douma [Tue, 12 Sep 2017 21:24:47 +0000 (23:24 +0200)]
Merge pull request #6472 from nextcloud/rc2

v12.0.3RC2

7 years agoMerge pull request #6474 from nextcloud/2fa_apppasword_auth_12
Roeland Jago Douma [Tue, 12 Sep 2017 21:23:46 +0000 (23:23 +0200)]
Merge pull request #6474 from nextcloud/2fa_apppasword_auth_12

[stable12] Fix AppPassword 2FA auth

7 years agoFix AppPassword 2FA auth 6474/head
Roeland Jago Douma [Tue, 12 Sep 2017 20:28:43 +0000 (22:28 +0200)]
Fix AppPassword 2FA auth

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agov12.0.3RC2 6472/head
Lukas Reschke [Tue, 12 Sep 2017 20:11:17 +0000 (22:11 +0200)]
v12.0.3RC2

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoMerge pull request #6466 from nextcloud/12-0-3-rc1 v12.0.3RC1
Morris Jobke [Tue, 12 Sep 2017 14:12:06 +0000 (16:12 +0200)]
Merge pull request #6466 from nextcloud/12-0-3-rc1

12.0.3 RC1

7 years ago12.0.3 RC1 6466/head
Lukas Reschke [Tue, 12 Sep 2017 12:46:18 +0000 (14:46 +0200)]
12.0.3 RC1

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoMerge pull request #6443 from nextcloud/backport-6064-absolute-path-must-be-relative...
Morris Jobke [Tue, 12 Sep 2017 08:03:29 +0000 (10:03 +0200)]
Merge pull request #6443 from nextcloud/backport-6064-absolute-path-must-be-relative-to-files-on-theming-update

[stable12] Still throw a locked exception when the path is not relative to $user/files/

7 years agoMerge pull request #6444 from nextcloud/backport-6351-sql-syntax-on-caldav
Morris Jobke [Tue, 12 Sep 2017 07:43:24 +0000 (09:43 +0200)]
Merge pull request #6444 from nextcloud/backport-6351-sql-syntax-on-caldav

[stable12] not to backquote LIMIT on CalDavBackend.php

7 years agoMerge pull request #6359 from nextcloud/12-6082
Morris Jobke [Tue, 12 Sep 2017 07:41:10 +0000 (09:41 +0200)]
Merge pull request #6359 from nextcloud/12-6082

[stable12] Use separate element color in theming

7 years agoMerge pull request #6446 from nextcloud/backport-6414-share-notification-wrong-language
Morris Jobke [Tue, 12 Sep 2017 07:40:19 +0000 (09:40 +0200)]
Merge pull request #6446 from nextcloud/backport-6414-share-notification-wrong-language

[stable12] Use the language of the recipient for the share notification

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 12 Sep 2017 00:08:34 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6442 from nextcloud/backport-6416-make-sure-sqlite-works-without...
Morris Jobke [Mon, 11 Sep 2017 21:20:58 +0000 (23:20 +0200)]
Merge pull request #6442 from nextcloud/backport-6416-make-sure-sqlite-works-without-content

[stable12] Ask the schema whether the table and column exist

7 years agoMerge pull request #6427 from nextcloud/backport-to-fix-popover-hovering
Morris Jobke [Mon, 11 Sep 2017 21:11:40 +0000 (23:11 +0200)]
Merge pull request #6427 from nextcloud/backport-to-fix-popover-hovering

[stable12] Fix hovering on all popover types

7 years agoMerge pull request #6441 from nextcloud/backport-6369-missing-translations-of-comment...
Morris Jobke [Mon, 11 Sep 2017 21:09:56 +0000 (23:09 +0200)]
Merge pull request #6441 from nextcloud/backport-6369-missing-translations-of-comment-activity-in-email

[stable12] Allow translations of the comments activity in the emails too

7 years agoMerge pull request #6440 from nextcloud/stable12-session-timeout-refresh-csrf-token
Morris Jobke [Mon, 11 Sep 2017 20:34:37 +0000 (22:34 +0200)]
Merge pull request #6440 from nextcloud/stable12-session-timeout-refresh-csrf-token

[stable12] Fix failing csp/nonce check due to timed out session

7 years agoUse the language of the recipient for the share notification 6446/head
Joas Schilling [Fri, 8 Sep 2017 08:34:19 +0000 (10:34 +0200)]
Use the language of the recipient for the share notification

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agonot to backquote LIMIT on CalDavBackend.php 6444/head
nhirokinet [Sun, 3 Sep 2017 14:51:49 +0000 (23:51 +0900)]
not to backquote LIMIT on CalDavBackend.php

7 years agoDon't lock in the appdata_ directory 6443/head
Joas Schilling [Thu, 10 Aug 2017 10:35:33 +0000 (12:35 +0200)]
Don't lock in the appdata_ directory

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoStill throw a locked exception when the path is not relative to $user/files/
Joas Schilling [Thu, 10 Aug 2017 09:58:01 +0000 (11:58 +0200)]
Still throw a locked exception when the path is not relative to $user/files/

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix Nextcloud 12 compatibility 6442/head
Joas Schilling [Mon, 11 Sep 2017 09:14:33 +0000 (11:14 +0200)]
Fix Nextcloud 12 compatibility

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAsk the schema whether the table and column exist
Joas Schilling [Fri, 8 Sep 2017 09:37:22 +0000 (11:37 +0200)]
Ask the schema whether the table and column exist

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAllow translations of the comments activity in the emails too 6441/head
Joas Schilling [Tue, 5 Sep 2017 16:10:32 +0000 (18:10 +0200)]
Allow translations of the comments activity in the emails too

Message and object data is not available on emails atm,
so we can not use them either...

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix failing csp/nonce check due to timed out session 6440/head
Christoph Wurst [Mon, 4 Sep 2017 15:29:26 +0000 (17:29 +0200)]
Fix failing csp/nonce check due to timed out session

The CSP nonce is based on the CSRF token. This token does not change,
unless you log in (or out). In case of the session data being lost,
e.g. because php gets rid of old sessions, a new CSRF token is gen-
erated. While this is fine in theory, it actually caused some annoying
problems where the browser restored a tab and Nextcloud js was blocked
due to an outdated nonce.
The main problem here is that, while processing the request, we write
out security headers relatively early. At that point the CSRF token
is known/generated and transformed into a CSP nonce. During this request,
however, we also log the user in because the session information was
lost. At that point we also refresh the CSRF token, which eventually
causes the browser to block any scripts as the nonce in the header
does not match the one which is used to include scripts.
This patch adds a flag to indicate whether the CSRF token should be
refreshed or not. It is assumed that refreshing is only necessary
if we want to re-generate the session id too. To my knowledge, this
case only happens on fresh logins, not when we recover from a deleted
session file.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 11 Sep 2017 00:08:28 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 10 Sep 2017 00:08:33 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoFix hovering on all popover types 6427/head
John Molakvoæ (skjnldsv) [Thu, 7 Sep 2017 16:43:31 +0000 (18:43 +0200)]
Fix hovering on all popover types

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 9 Sep 2017 00:08:30 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6421 from nextcloud/12-6419
Morris Jobke [Fri, 8 Sep 2017 14:58:49 +0000 (16:58 +0200)]
Merge pull request #6421 from nextcloud/12-6419

[stable12] Use tmpfs for mysql CI containers

7 years agoUse tmpfs for mysql CI containers 6421/head
Morris Jobke [Fri, 8 Sep 2017 12:54:58 +0000 (14:54 +0200)]
Use tmpfs for mysql CI containers

Should improve performance

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 8 Sep 2017 00:08:25 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6396 from nextcloud/12-6329
Joas Schilling [Thu, 7 Sep 2017 10:48:13 +0000 (12:48 +0200)]
Merge pull request #6396 from nextcloud/12-6329

[stable12] Don't log LDAP password when server is not available

7 years agoMerge pull request #6386 from nextcloud/12-6247
Morris Jobke [Thu, 7 Sep 2017 07:32:45 +0000 (09:32 +0200)]
Merge pull request #6386 from nextcloud/12-6247

[stable12] Fix undefined index oauthState

7 years agoDon't log LDAP password when server is not available 6396/head
Joas Schilling [Fri, 1 Sep 2017 08:31:11 +0000 (10:31 +0200)]
Don't log LDAP password when server is not available

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 7 Sep 2017 00:08:32 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6319 from nextcloud/improve_2fa-12
Roeland Jago Douma [Wed, 6 Sep 2017 18:07:46 +0000 (20:07 +0200)]
Merge pull request #6319 from nextcloud/improve_2fa-12

[stable12] Improve 2FA

7 years agoFix tests 6386/head
Morris Jobke [Wed, 6 Sep 2017 09:25:19 +0000 (11:25 +0200)]
Fix tests

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoFix undefined index oauthState
Morris Jobke [Thu, 24 Aug 2017 10:15:26 +0000 (12:15 +0200)]
Fix undefined index oauthState

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoMerge pull request #6368 from nextcloud/backport-5436-fix-group-check
Lukas Reschke [Wed, 6 Sep 2017 15:19:15 +0000 (17:19 +0200)]
Merge pull request #6368 from nextcloud/backport-5436-fix-group-check

[stable12] Fix group check on share provider

7 years agoMerge pull request #6357 from nextcloud/swift-tmpfiles-12
Lukas Reschke [Wed, 6 Sep 2017 15:17:36 +0000 (17:17 +0200)]
Merge pull request #6357 from nextcloud/swift-tmpfiles-12

[12] Remove tmpFiles Array in Swift.php

7 years agoFix login with basic auth 6319/head
Roeland Jago Douma [Tue, 5 Sep 2017 10:14:28 +0000 (12:14 +0200)]
Fix login with basic auth

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 6 Sep 2017 00:08:30 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6366 from nextcloud/backport-6358-email-update
Morris Jobke [Tue, 5 Sep 2017 18:57:06 +0000 (20:57 +0200)]
Merge pull request #6366 from nextcloud/backport-6358-email-update

Backport email update

7 years agoFix 500 Internal Server Error on writing 6368/head
Jan-Philipp Litza [Fri, 16 Jun 2017 09:38:22 +0000 (11:38 +0200)]
Fix 500 Internal Server Error on writing

In some not yet completely determined configurations, the following error could occur while writing a file:

Error: Call to a member function getUsers() on null
    /var/www/nextcloud/lib/private/Share20/Manager.php - line 1277: OC\Share20\DefaultShareProvider->getAccessList(Array, true)
    /var/www/nextcloud/lib/private/Share20/ShareHelper.php - line 51: OC\Share20\Manager->getAccessList(Object(OC\Files\Node\Folder), true, true)
    /var/www/nextcloud/apps/activity/lib/FilesHooks.php - line 616: OC\Share20\ShareHelper->getPathsForAccessList(Object(OC\Files\Node\File))
    /var/www/nextcloud/apps/activity/lib/FilesHooks.php - line 196: OCA\Activity\FilesHooks->getUserPathsFromPath('/path/to/file', 'user')
    /var/www/nextcloud/apps/activity/lib/FilesHooks.php - line 157: OCA\Activity\FilesHooks->addNotificationsForFileAction('/path/to/file', 'file_changed', 'changed_self', 'changed_by')
    /var/www/nextcloud/apps/activity/lib/FilesHooksStatic.php - line 55: OCA\Activity\FilesHooks->fileUpdate('/path/to/file')
    /var/www/nextcloud/lib/private/legacy/hook.php - line 106: OCA\Activity\FilesHooksStatic fileUpdate(Array)
    /var/www/nextcloud/lib/private/Files/View.php - line 1245: OC_Hook emit('OC_Filesystem', 'post_update', Array)
    /var/www/nextcloud/lib/private/Files/View.php - line 1173: OC\Files\View->runHooks(Array, '/path/to/file', true)
    /var/www/nextcloud/lib/private/Files/View.php - line 679: OC\Files\View->basicOperation('file_put_conten...', '/path/to/file', Array, '<?xml version="...')
    /var/www/nextcloud/lib/private/Files/Node/File.php - line 64: OC\Files\View->file_put_contents('/path/to/file', '<?xml version="...')
    [...]

Signed-off-by: Jan-Philipp Litza <janphilipp@litza.de>
7 years agoFix tests 6366/head
Morris Jobke [Tue, 5 Sep 2017 11:55:36 +0000 (13:55 +0200)]
Fix tests

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoFix unit tests
Joas Schilling [Mon, 4 Sep 2017 15:01:31 +0000 (17:01 +0200)]
Fix unit tests

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoMerge setMetaData into constructor
Joas Schilling [Mon, 4 Sep 2017 13:07:19 +0000 (15:07 +0200)]
Merge setMetaData into constructor

This ensures that the meta data is set in the beginning

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoSet the meta data before everything
Joas Schilling [Mon, 4 Sep 2017 12:46:05 +0000 (14:46 +0200)]
Set the meta data before everything

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoFix naming of user id in email meta data
Joas Schilling [Fri, 1 Sep 2017 13:04:17 +0000 (15:04 +0200)]
Fix naming of user id in email meta data

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoImplement metadata for email templates of remaining emails
Morris Jobke [Wed, 30 Aug 2017 20:56:14 +0000 (22:56 +0200)]
Implement metadata for email templates of remaining emails

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 5 Sep 2017 00:08:33 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoCleanup theming styles to fit the new login page 6359/head
Julius Härtl [Fri, 1 Sep 2017 21:27:34 +0000 (23:27 +0200)]
Cleanup theming styles to fit the new login page

Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years agoFix tests for primary element color
Julius Härtl [Fri, 1 Sep 2017 21:06:44 +0000 (23:06 +0200)]
Fix tests for primary element color

Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years agoUse separate element color in theming
Julius Härtl [Fri, 11 Aug 2017 13:11:47 +0000 (15:11 +0200)]
Use separate element color in theming

This way we can use a grey color when the primary color is to bright

Signed-off-by: Julius Härtl <jus@bitgrid.net>
7 years agoRemove tmpFiles Array in Swift.php 6357/head
Christopher Bartz [Mon, 14 Aug 2017 13:03:30 +0000 (15:03 +0200)]
Remove tmpFiles Array in Swift.php

tmpFiles Array is unnecessary and there has been
a reference without an assignment which lead to a bug making swift external
storage unuseable.

7 years agoMerge pull request #6355 from nextcloud/6221-12
blizzz [Mon, 4 Sep 2017 10:52:44 +0000 (12:52 +0200)]
Merge pull request #6355 from nextcloud/6221-12

[stable12] Correctly format OCS response with favorites

7 years agoMerge pull request #6333 from nextcloud/new-dav-event-stable12
Morris Jobke [Mon, 4 Sep 2017 09:57:22 +0000 (11:57 +0200)]
Merge pull request #6333 from nextcloud/new-dav-event-stable12

[stable12] add a new dav event to allow apps to register their own sabredav plugins

7 years agoCorrectly format OCS response with favorites 6355/head
Roeland Jago Douma [Tue, 22 Aug 2017 16:46:47 +0000 (18:46 +0200)]
Correctly format OCS response with favorites

The helper funtion did not handle the response correctly and basically
only returned the last share with tags.

This is a simple rewrite. That is still understandable. Loops maybe more
than strictly required. But preformance is not the issue here.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 3 Sep 2017 00:08:24 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 2 Sep 2017 00:08:39 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoalso allow to register additional plugins if the old endpoint is used 6333/head
Bjoern Schiessle [Wed, 30 Aug 2017 10:32:52 +0000 (12:32 +0200)]
also allow to register additional plugins if the old endpoint is used

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years agoadd a new dav event to allow apps to register their own sabredav plugins
Bjoern Schiessle [Wed, 30 Aug 2017 10:15:01 +0000 (12:15 +0200)]
add a new dav event to allow apps to register their own sabredav plugins

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 1 Sep 2017 00:08:36 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoImprove 2FA
Roeland Jago Douma [Thu, 10 Aug 2017 10:46:33 +0000 (12:46 +0200)]
Improve 2FA

* Store the auth state in the session so we don't have to query it every
time.
* Added some tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 31 Aug 2017 00:08:40 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6285 from nextcloud/generate-system-wide-key-pair-12
Morris Jobke [Wed, 30 Aug 2017 19:31:31 +0000 (21:31 +0200)]
Merge pull request #6285 from nextcloud/generate-system-wide-key-pair-12

Generate system wide key pair

7 years agoMerge pull request #5841 from nextcloud/bugfix-stable12/2855/dont_send_invitations_fo...
Morris Jobke [Wed, 30 Aug 2017 19:01:32 +0000 (21:01 +0200)]
Merge pull request #5841 from nextcloud/bugfix-stable12/2855/dont_send_invitations_for_past_events

[stable12] dont send invitations for past events

7 years agoupdate autoloader 6285/head
Bjoern Schiessle [Wed, 30 Aug 2017 12:14:52 +0000 (14:14 +0200)]
update autoloader

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years agomove repair step to stable12
Bjoern Schiessle [Tue, 29 Aug 2017 08:56:14 +0000 (10:56 +0200)]
move repair step to stable12

because we decided to backport it the repair step needs to be executed
already on stable12

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years agoBump version
Roeland Jago Douma [Wed, 2 Aug 2017 11:36:50 +0000 (13:36 +0200)]
Bump version

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years agoadd prefix to user and system keys to avoid name collisions
Bjoern Schiessle [Thu, 27 Jul 2017 14:52:28 +0000 (16:52 +0200)]
add prefix to user and system keys to avoid name collisions

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years agoextend the identity proof manager to allow system wide key pairs
Bjoern Schiessle [Tue, 25 Jul 2017 09:54:14 +0000 (11:54 +0200)]
extend the identity proof manager to allow system wide key pairs

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years agoMerge pull request #6311 from nextcloud/stable12-specify-slo-url
Morris Jobke [Wed, 30 Aug 2017 18:29:16 +0000 (20:29 +0200)]
Merge pull request #6311 from nextcloud/stable12-specify-slo-url

[Stable12] specify slo url

7 years agoInject \OCP\IURLGenerator to make tests work 6311/head
Lukas Reschke [Fri, 18 Aug 2017 13:32:40 +0000 (15:32 +0200)]
Inject \OCP\IURLGenerator to make tests work

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years agoProperly allow \OCP\Authentication\IApacheBackend to specify logout URL
Lukas Reschke [Fri, 18 Aug 2017 10:16:43 +0000 (12:16 +0200)]
Properly allow \OCP\Authentication\IApacheBackend to specify logout URL

Any `\OCP\Authentication\IApacheBackend` previously had to implement `getLogoutAttribute` which returns a string.
This string is directly injected into the logout `<a>` tag, so returning something like `href="foo"` would result
in `<a href="foo">`.

This is rather error prone and also in Nextcloud 12 broken as the logout entry has been moved with
054e161eb5f4a5c5c13ee322ae8e93ce66f01b13 inside the navigation manager where one cannot simply inject attributes.

Thus this feature is broken in Nextcloud 12 which effectively leads to the bug described at nextcloud/user_saml#112,
people cannot logout anymore when using SAML using SLO. Basically in case of SAML you have a SLO url which redirects
you to the IdP and properly logs you out there as well.

Instead of monkey patching the Navigation manager I decided to instead change `\OCP\Authentication\IApacheBackend` to
use `\OCP\Authentication\IApacheBackend::getLogoutUrl` instead where it can return a string with the appropriate logout
URL. Since this functionality is only prominently used in the SAML plugin. Any custom app would need a small change but
I'm not aware of any and there's simply no way to fix this properly otherwise.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 30 Aug 2017 00:08:36 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6300 from nextcloud/add-share-with
Morris Jobke [Tue, 29 Aug 2017 15:56:42 +0000 (17:56 +0200)]
Merge pull request #6300 from nextcloud/add-share-with

[stable12] Add shareWith to email template metadata

7 years agoAdd shareWith to email template metadata 6300/head
Morris Jobke [Tue, 29 Aug 2017 14:02:30 +0000 (16:02 +0200)]
Add shareWith to email template metadata

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoMerge pull request #6278 from nextcloud/stable12-6182-fixes-in-files-drop-js
Morris Jobke [Tue, 29 Aug 2017 12:49:05 +0000 (14:49 +0200)]
Merge pull request #6278 from nextcloud/stable12-6182-fixes-in-files-drop-js

[stable12] Fixes in files_drop.js

7 years agoMerge pull request #6284 from nextcloud/add-new-propfind-stable12
Björn Schießle [Tue, 29 Aug 2017 08:48:30 +0000 (10:48 +0200)]
Merge pull request #6284 from nextcloud/add-new-propfind-stable12

add propfind to detect encryption status

7 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 29 Aug 2017 00:08:37 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoMerge pull request #6287 from nextcloud/12-6255
Morris Jobke [Mon, 28 Aug 2017 16:34:30 +0000 (18:34 +0200)]
Merge pull request #6287 from nextcloud/12-6255

[stable12] Add meta information to emails for better customisation

7 years agoAllow the expiration date to be set to null 6287/head
Morris Jobke [Mon, 28 Aug 2017 15:39:29 +0000 (17:39 +0200)]
Allow the expiration date to be set to null

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoAllow the expiration date to be set to null
Morris Jobke [Sat, 26 Aug 2017 09:47:35 +0000 (11:47 +0200)]
Allow the expiration date to be set to null

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years agoAlso for reset password
Joas Schilling [Thu, 24 Aug 2017 16:02:37 +0000 (18:02 +0200)]
Also for reset password

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoAdd meta information to emails for better customisation
Joas Schilling [Thu, 24 Aug 2017 15:54:22 +0000 (17:54 +0200)]
Add meta information to emails for better customisation

Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years agoadd propfind to detect encryption status 6284/head
Bjoern Schiessle [Mon, 28 Aug 2017 10:27:29 +0000 (12:27 +0200)]
add propfind to detect encryption status

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 28 Aug 2017 00:08:33 +0000 (00:08 +0000)]
[tx-robot] updated from transifex

7 years agoDo not iterate over the files 6278/head
Daniel Calviño Sánchez [Fri, 18 Aug 2017 13:18:20 +0000 (15:18 +0200)]
Do not iterate over the files

As "singleFileUpload" is used the "add" callback (which in turn calls
"addFileToUpload") will always be called with a single file. Therefore
there is no need to iterate over the files (and it is not done in the
other callbacks either, so this aligns the code with the rest of the
callbacks).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoReplace fileName variable with data.files[0].name
Daniel Calviño Sánchez [Fri, 18 Aug 2017 13:14:32 +0000 (15:14 +0200)]
Replace fileName variable with data.files[0].name

There is no need to store the file name, as the "data" parameter given to
all the callbacks provides a "files" attribute with all the files that
the callback refers to; moreover, it will always be a single file due to
the use of "singleFileUploads" in the jQuery File Upload plugin.

This also fixes the loading icon not disappearing when several files were
uploaded at once. "singleFileUploads" causes the "add" callback to be
called once for each file to be uploaded, so "fileName" was overwritten
with the name of each new file in the upload set; when "fileName" was
later used in the "done" callback to find the file in the list whose
loading icon replace with the MIME type icon "fileName" always had the
name of the last file, and thus its icon was the only one replaced.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
7 years agoUpdate the whole file item instead of only its contents
Daniel Calviño Sánchez [Fri, 18 Aug 2017 12:26:15 +0000 (14:26 +0200)]
Update the whole file item instead of only its contents

The "done" and "fail" callbacks both update the item for the uploaded
file using "setFileIcon". "setFileIcon" updates the contents of the
"<li>" element for the file, but the "fail" callback was giving
"setFileIcon" an element generated by the template,  so the resulting
HTML contained a "<li>" element nested in another "<li>" element.

However, generating the HTML is better done through a template, so the
template now receives the icon to show in order to be used by a
successful upload and a failed one, and "setFileIcon" was changed to
"updateFileItem".

Note that the mimeTypeUrl does no longer need to be escaped, as
Handlebars templates escape the needed characters automatically.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>