Commit graph

51270 commits

Author SHA1 Message Date
Nextcloud bot
cd4f8085f4
[tx-robot] updated from transifex 2020-06-17 02:16:10 +00:00
Nextcloud bot
4259a13294
[tx-robot] updated from transifex 2020-06-16 02:16:32 +00:00
Nextcloud bot
cb60b6f18e
[tx-robot] updated from transifex 2020-06-15 02:16:24 +00:00
Nextcloud bot
db8e1efa52
[tx-robot] updated from transifex 2020-06-14 02:16:17 +00:00
Nextcloud bot
03a709bc91
[tx-robot] updated from transifex 2020-06-11 02:16:16 +00:00
Nextcloud bot
75304ffd2b
[tx-robot] updated from transifex 2020-06-10 02:16:34 +00:00
Roeland Jago Douma
726075911b
Merge pull request #21335 from nextcloud/backport/21318/stable17
[stable17] clear LDAP cache after user deletion
2020-06-09 19:29:46 +02:00
Arthur Schiwon
ac10451343 clear LDAP cache after user deletion
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-06-09 08:27:51 +00:00
Nextcloud bot
6d71a15ffc
[tx-robot] updated from transifex 2020-06-09 02:16:22 +00:00
Joas Schilling
0c408a8119
Merge pull request #21158 from nextcloud/backport/21143/stable17-fix-password-changes-in-link-and-mail-shares
[stable17] Fix password changes in link and mail shares
2020-06-08 19:23:56 +02:00
Nextcloud bot
0b92afbda4
[tx-robot] updated from transifex 2020-06-08 02:16:23 +00:00
Nextcloud bot
95ef2ca2eb
[tx-robot] updated from transifex 2020-06-07 02:16:16 +00:00
Roeland Jago Douma
1fcfeac806
Merge pull request #20803 from nextcloud/backport/19124/stable17
[stable17] Exclude groups from sharing: Skip delete groups
2020-06-06 10:41:57 +02:00
Roeland Jago Douma
7b72d0b865
Merge pull request #21130 from nextcloud/backport/21123/stable17
[stable17] simplify getGroups, fixing wrong chunking logic
2020-06-06 09:46:10 +02:00
Nextcloud bot
e8ffefd3df
[tx-robot] updated from transifex 2020-06-06 02:16:26 +00:00
Roeland Jago Douma
7ef52a43f1
Merge pull request #21249 from nextcloud/backport/21229/stable17
[stable17] Fix empty event UUID reminder notifications
2020-06-05 13:39:14 +02:00
Thomas Citharel
23a0aa5f1f Fix empty event UUID reminder notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-05 07:10:34 +00:00
Nextcloud bot
8d0937c671
[tx-robot] updated from transifex 2020-06-05 02:17:04 +00:00
Roeland Jago Douma
1da3d9229e
Merge pull request #21231 from nextcloud/backport/20427/stable17
[stable17] Fix password reset saying Admin changed my password when reset from login page
2020-06-04 19:02:52 +02:00
Roeland Jago Douma
ec8d51336a
Merge pull request #21228 from nextcloud/backport/21199/stable17
[stable17] Prevent harder to share your root
2020-06-04 19:02:22 +02:00
Thomas Citharel
bdb6589482
Use \OC::$CLI instead of PHP_SAPI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-04 11:34:59 +02:00
Thomas Citharel
bb066cecfd
Fix password reset saying Admin changed my password when reset from
login page

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-04 11:20:33 +02:00
Joas Schilling
503019f502 Prevent harder to share your root
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-04 09:06:25 +00:00
Roeland Jago Douma
f5eca5209c
Merge pull request #21202 from nextcloud/backport/21181/stable17
[stable17] Do not only catch Exceptions but any Throwable during rmt share delete
2020-06-04 10:59:16 +02:00
Roeland Jago Douma
a36e761d7e
Merge pull request #21183 from nextcloud/version/17.0.7/final
17.0.7
2020-06-04 08:26:00 +02:00
Nextcloud bot
78b2e22955
[tx-robot] updated from transifex 2020-06-04 02:16:44 +00:00
Christoph Wurst
1d8ca91a37 Do not only catch Exceptions but any Throwable during rmt share delete
When a remote share is deleted, we notify the remove instance. This may
trigger various error conditions, which we want to catch in order to
avoid undeletable shares. The try-catch, however, did only capture
exceptions, so things like TypeErrors were not caught and caused the
process to fail hard.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-03 09:18:02 +00:00
Nextcloud bot
73d6470b09
[tx-robot] updated from transifex 2020-06-03 02:16:37 +00:00
Roeland Jago Douma
07a3b014c0
17.0.7
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-02 09:27:22 +02:00
Nextcloud bot
6317cfda38
[tx-robot] updated from transifex 2020-06-02 02:16:19 +00:00
Daniel Calviño Sánchez
eb1b893fe5 Do not disable send password by Talk without setting new password in UI
Before it was possible to disable "send password by Talk" without
setting a new password, so the UI allowed that. Now that the server
prevents it the UI had to be adjusted to not update the share until a
new password is set when "send password by Talk" is disabled.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 20:13:28 +02:00
Daniel Calviño Sánchez
5f53688a52 Add integration tests for video verification
Enabling the "send password by Talk" property of shares require that
Talk is installed and enabled, so the Drone step that runs them has to
first clone the Talk repository.

When the integration tests are run on a local development instance,
however, it is not guaranteed that Talk is installed. Due to this the
"@Talk" tag was added, which ensures that any feature or scenario marked
with it will first check if Talk is installed and, if not, skip the
scenario (instead of failing).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:24 +02:00
Daniel Calviño Sánchez
146e43ba47 Add integration tests for creating and updating a mail share
In most cases, when a mail share is created or updated an e-mail is sent
to the sharee, which is done by connecting to the SMTP server set in the
configuration. If the server can not be contacted then the creation or
update of the mail share fails.

To make possible to test mail shares without using a real SMTP server a
fake one has been added. The original script, which is MIT licensed, was
based on inetd, so it was slightly modified to run on its own.

In order to use it from the integration tests the "Given dummy mail
server is listening" step has to be called in the scenarios in which the
mail server is needed.

For now that is the only available step; things like checking the sent
mails, while possible (as the script can log the mails to certain file),
have not been added yet.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:24 +02:00
Daniel Calviño Sánchez
0e2c92ded7 Generalize integration test steps to download last share
Note that the "last link share can be downloaded" step was kept as it
tests the "url" property specific of link shares.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:23 +02:00
Daniel Calviño Sánchez
091da66b77 Remove unused variables
The step names were adjusted accordingly.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:23 +02:00
Daniel Calviño Sánchez
f6bcabb632 Fix disabling send password by Talk without new password in mail shares
When "send password by Talk" was disabled in a mail share it was
possible to keep the same password as before, as it does not pose any
security issue (unlike keeping it when "send password by Talk" is
enabled, as in that case the password was already disclosed by mail).

However, if a mail share is updated but the password is not set again
only the hashed password will be available. In that case it would not
make sense to send the password by mail, so now the password must be
changed when disabling "send password by Talk".

Note that, even if explicitly setting the same password again along with
the "send password by Talk" property would work, this was also prevented
for simplicity.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:23 +02:00
Daniel Calviño Sánchez
4e311747a2 Fix enabling send password by Talk with same password in mail shares
When "send password by Talk" is enabled in a mail share a new password
must be also set. However, when the passwords of the original and the
new share were compared it was not taken into account that the original
password is now hashed, while the new one is not (unless no new password
was sent, in which case the password of the original share was set in
the new share by the controller, but that was already prevented due to
both passwords being literally the same), so it was possible to set the
same password again.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:23 +02:00
Daniel Calviño Sánchez
d04000232c Fix enabling send password by Talk with empty password in link shares
When "send password by Talk" is enabled in a link share now a non empty
password is enforced.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:53:23 +02:00
Daniel Calviño Sánchez
a7d833cb37 Fix creating a mail share with a password
When a mail share was created with a password the given password was
ignored. Now the given password is properly set and, if passwords are
enforced, it is not overriden with the autogenerated password.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-06-01 10:43:28 +02:00
Nextcloud bot
8bdcf11b13
[tx-robot] updated from transifex 2020-06-01 02:16:19 +00:00
Nextcloud bot
3ee3ca5db5
[tx-robot] updated from transifex 2020-05-31 02:16:36 +00:00
Nextcloud bot
00c014c15e
[tx-robot] updated from transifex 2020-05-30 02:16:23 +00:00
Daniel Calviño Sánchez
b47bad2231 Extend mail shares unit tests to check the password and mail template
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-05-29 15:34:00 +02:00
Nextcloud bot
1d6b1a8297
[tx-robot] updated from transifex 2020-05-29 02:16:48 +00:00
Arthur Schiwon
f1cf05a8b0
simplify getGroups, fixing wrong chunking logic
pagination is taken care of properly in the search logic in Access class

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-05-28 20:26:56 +02:00
Roeland Jago Douma
c2e1a6dcb6
Merge pull request #21062 from nextcloud/version/17.0.7/RC1
17.0.7 RC1
2020-05-28 16:20:44 +02:00
Roeland Jago Douma
913ce60dc3
Merge pull request #21110 from nextcloud/backport/19793/stable17
[stable17] Fix resharing of federated shares that were created out of links
2020-05-28 16:19:50 +02:00
Nextcloud bot
ace0ace081
[tx-robot] updated from transifex 2020-05-28 02:16:57 +00:00
Roeland Jago Douma
fbf7c93293
Merge pull request #21104 from nextcloud/backport/20676/stable17
[stable17] Don't remove last user in ldap group when limit is -1
2020-05-27 21:58:49 +02:00
blizzz
0d691c3dfc
Merge pull request #21116 from nextcloud/backport/21106/stable17
[stable17] use the loginname to verify the old password in user password changes
2020-05-27 10:18:27 +02:00