Commit graph

12422 commits

Author SHA1 Message Date
Lukas Reschke
cf752bea22 Merge pull request #2485 from nextcloud/shared-storage-mask-10
[10] 	apply permissions mask for shared storage
2016-12-03 23:35:40 +01:00
Nextcloud bot
c20532c01e
[tx-robot] updated from transifex 2016-12-03 01:07:34 +00:00
Robin Appelman
d84f88b041
only update the cache if the storage operation succeeds
Signed-off-by: Robin Appelman <robin@icewind.nl>
2016-12-02 18:56:11 +01:00
Robin Appelman
2dd97bb52d
apply permissions mask for shared storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2016-12-02 18:02:34 +01:00
Morris Jobke
ed71ecc2b2 Merge pull request #2452 from nextcloud/stable10-1826
[stable10] Fix post_unshareFromSelf hook parameter format
2016-12-02 10:41:57 +01:00
Lukas Reschke
5efb7ed043
Default to empty string
Otherwise `null` is returned which leads to a ton of similar error messages if the log condition setting is enabled.:

```
{"reqId":"3wVBarnDfOV3qkI1bVCU","remoteAddr":"89.98.78.41","app":"PHP","message":"hash_equals(): Expected user_string to be a string, null given at \/var\/www\/html\/lib\/private\/Log.php#275","level":3,"time":"2016-10-07T14:22:15+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"icewind"}
```
2016-12-02 01:09:04 +01:00
Vincent Petry
f07c209cb9
Fix post_unshareFromSelf hook parameter format
When unsharing from self in a group share situation, the share items
passed to the post_unshareFromSelf hook were using the wrong format in
which the attribute names (ex: "share_type") have non camel-case format.

This fix makes sure that in group sharing case we use the correct
format. It looks like the code was already producing it but in
array_merge it was not using it and adding the unprocessed one.
2016-12-02 00:50:32 +01:00
Lukas Reschke
072794d78d
[stable10] Prevent endless loop in \OC\Files\View::createParentDirectories
\OC\Files\View::createParentDirectories was previously prone to an endless loop. If a path such as /foo/existingfile.txt/bar/foo was passed and existingfile.txt existed in foo the loop was never left and running until the PHP process timed out.

This commit changes the logic to a foreach loop over an array and additionally additional error handling using is_file.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-01 16:53:26 +01:00
Nextcloud bot
db2206450f
[tx-robot] updated from transifex 2016-12-01 01:07:24 +00:00
Nextcloud bot
7a32bd49d8
[tx-robot] updated from transifex 2016-11-30 14:18:15 +00:00
Nextcloud bot
1e818369a7
[tx-robot] updated from transifex 2016-11-30 01:07:24 +00:00
Nextcloud bot
cb910bfacc
[tx-robot] updated from transifex 2016-11-29 17:03:32 +00:00
Nextcloud bot
506196af6c
[tx-robot] updated from transifex 2016-11-29 01:06:54 +00:00
Nextcloud bot
14a003eb32
[tx-robot] updated from transifex 2016-11-26 01:07:06 +00:00
Morris Jobke
28eed678e0
Fix regressiong from #2048
* fixes https://github.com/nextcloud/server/pull/2048#issuecomment-262826162

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-24 20:54:33 +01:00
Joas Schilling
ac5a6b2d30
Add a magic wrapper from hell to allow phpunit4 to run the code again
Remove this once phpunit 5 is the lowest supported version, by reverting:
https://github.com/nextcloud/server/pull/2137

Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-24 09:11:47 +01:00
Nextcloud bot
fee91b1073
[tx-robot] updated from transifex 2016-11-22 01:07:03 +00:00
Nextcloud bot
c688613f5f
[tx-robot] updated from transifex 2016-11-21 01:07:05 +00:00
Nextcloud bot
cd358b049d
[tx-robot] updated from transifex 2016-11-20 01:06:51 +00:00
Nextcloud bot
34d879bc14
[tx-robot] updated from transifex 2016-11-19 01:06:51 +00:00
Nextcloud bot
34f07f2bdd
[tx-robot] updated from transifex 2016-11-18 01:07:13 +00:00
Vincent Petry
db8b66c546
Hack to prevent warning for read-only wrapper in public links
Storage wrappers should normally always be registered inside a presetup
hook. However in the public link scenario this is not possible and
there is currently no good alternative with the current architecture.

Instead of logging a warning every time, this fix prevents the warning
to be shown but also adds a FIXME in the code for the future. This is
ok because this app is already using private/internal APIs at the
moment and should be reworked properly in the future.
2016-11-17 17:00:49 +01:00
Nextcloud bot
2600bb2dbb
[tx-robot] updated from transifex 2016-11-17 01:07:09 +00:00
Morris Jobke
4d0037c461 Merge pull request #2091 from nextcloud/fix_1862
Do not request node when creating a user-group share
2016-11-17 00:42:50 +01:00
Lukas Reschke
6afad44091
Add bruteforce checker to Person.php
Also check for attempts on this endpoint

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-14 15:28:53 +01:00
Nextcloud bot
3acfc4e9cd
[tx-robot] updated from transifex 2016-11-14 01:07:13 +00:00
Roeland Jago Douma
b6284d1664
Fixes retargeting a share of a deleted source
Fixes #1862

We tried to construct the actual node. While this node was no longer
available. This work around makes sure that we don't try to do this.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-11 10:35:04 +01:00
Nextcloud bot
da7d4e4ae8
[tx-robot] updated from transifex 2016-11-10 01:07:22 +00:00
Morris Jobke
17b1a720fa Merge pull request #2059 from nextcloud/backport-2058-better-error-message-for-installation-error
[stable10] Use a better error message and point the users to the support channels
2016-11-09 14:00:58 +01:00
Joas Schilling
9e2e29aa10
Correctly catch the "soft errors" now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-09 10:31:43 +01:00
Joas Schilling
ef917ee9c8
Use a better error message and point the users to the support channels
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-09 09:20:55 +01:00
Morris Jobke
3f457943b0
Remove unneeded Windows logic
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-08 12:29:25 +01:00
Morris Jobke
b718693842
Activate APCu on PHP 7
Fix an issue with APCus inc and dec methods on PHP 7

see https://github.com/krakjoe/apcu/issues/183#issuecomment-244038221 for details

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-11-08 12:29:25 +01:00
Nextcloud bot
7f3a13c968
[tx-robot] updated from transifex 2016-11-07 01:07:10 +00:00
Nextcloud bot
b7aa793750
[tx-robot] updated from transifex 2016-11-06 01:07:57 +00:00
Nextcloud bot
75691d43af
[tx-robot] updated from transifex 2016-11-05 01:07:21 +00:00
Nextcloud bot
eb97592588
[tx-robot] updated from transifex 2016-11-04 01:07:13 +00:00
Nextcloud bot
7f03ed55a8
[tx-robot] updated from transifex 2016-11-03 01:07:16 +00:00
Nextcloud bot
2603e28aec
[tx-robot] updated from transifex 2016-11-02 01:07:16 +00:00
Nextcloud bot
8d6ed8d95e
[tx-robot] updated from transifex 2016-11-01 01:07:05 +00:00
Nextcloud bot
f59e13a8f6
[tx-robot] updated from transifex 2016-10-31 01:07:02 +00:00
Nextcloud bot
f621a17df1
[tx-robot] updated from transifex 2016-10-30 00:07:03 +00:00
Nextcloud bot
dc2ea1b295
[tx-robot] updated from transifex 2016-10-29 00:07:21 +00:00
Nextcloud bot
aba0dbc75e
[tx-robot] updated from transifex 2016-10-28 00:07:18 +00:00
Nextcloud bot
a96b9d5b0b
[tx-robot] updated from transifex 2016-10-27 00:07:13 +00:00
Nextcloud bot
5ae4db3fb0
[tx-robot] updated from transifex 2016-10-26 00:07:18 +00:00
Nextcloud bot
8a46c2f0f1
[tx-robot] updated from transifex 2016-10-25 09:36:17 +00:00
Nextcloud bot
51300d3689
[tx-robot] updated from transifex 2016-10-18 00:06:58 +00:00
Nextcloud bot
259e3c2e44
[tx-robot] updated from transifex 2016-10-15 00:07:02 +00:00
Nextcloud bot
9cff86ebc8
[tx-robot] updated from transifex 2016-10-13 00:07:19 +00:00