Roeland Jago Douma
c8d391a6a7
Merge pull request #2702 from nextcloud/enoch85-patch-1
...
[10] Do not connect to database before creating it
2016-12-16 16:09:16 +01:00
Lukas Reschke
d739dfb8cb
Merge pull request #2464 from nextcloud/backport-1973-dont-disable-shipped-apps-but-throw-instead
...
[stable10] Throw an exception when a shipped app was not replaced before the update
2016-12-16 13:29:25 +01:00
Joas Schilling
23521c5227
Do not connect to database before creating it
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-15 18:28:46 +01:00
Joas Schilling
54b081226b
Get correct L10N for Settings Manager
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-14 12:30:05 +01:00
Joas Schilling
d84234da13
Lower the role name before using it
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-09 16:50:37 +01:00
Roeland Jago Douma
113a743b91
Use proper ALTER ROLE syntax
...
Fixes #1260
See https://www.postgresql.org/docs/9.0/static/sql-alterrole.html
2016-12-09 16:04:17 +01:00
Morris Jobke
5fd960b370
Document updater channel & check for correct PHP version in updater
...
* see https://github.com/nextcloud/updater/issues/53
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-12-06 11:22:00 +01:00
Lukas Reschke
8a65b56a03
Merge pull request #2465 from nextcloud/backport-1972-invalid-files-from-scanner
...
[stable10] Make sure we don't scan files that can not be accessed
2016-12-05 23:28:54 +01:00
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
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
Joas Schilling
eefd45875e
Make sure we don't scan files that can not be accessed
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-02 11:14:00 +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
Joas Schilling
27d5142b1c
Throw an exception when a shipped app was not replaced before the update
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-02 10:07:15 +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
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
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
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
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
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
Arthur Schiwon
6a2e51b4d9
make AvatarManager use LazyRootFolder, fixes #1251
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2016-10-12 14:08:12 +02:00
Roeland Jago Douma
8574a5a51b
Merge pull request #1685 from nextcloud/backport-1683-installing-app-with-code-checker
...
[stable10] Add app name to the call
2016-10-11 16:32:45 +02:00
Roeland Jago Douma
1bdc4d7fef
Merge pull request #1688 from nextcloud/backport-1586-fix-multi-translation-names-and-descriptions
...
[stable10] Fix multi translation names and descriptions
2016-10-11 14:28:37 +02:00
Joas Schilling
6b703e97ce
Only trigger postDelete hooks when the user was deleted...
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-11 10:45:39 +02:00
Joas Schilling
1fcd7848c6
Remove notifications upon user deletion
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-11 10:41:41 +02:00
Joas Schilling
7d0d38348f
Fallback from "de" to "de_DE" and the other way around
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-11 09:52:28 +02:00
Joas Schilling
8ba5b9722b
Allow multiple names and description
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-11 09:52:06 +02:00
Joas Schilling
eba5e3c9e7
Add app name to the call
...
Regression from 69b063f4c6
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-11 09:43:04 +02:00
Joas Schilling
72ede569e7
Merge pull request #1645 from nextcloud/stable10-backport-1595
...
[stable10] Use proper casing of username in avatar filesystem setup
2016-10-10 10:00:02 +02:00
Morris Jobke
6374593099
log version number in each log line
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-07 10:09:37 +02:00
Morris Jobke
e4ece33e80
Use proper casing of username in avatar filesystem setup
...
* before you could request an avatar for User instead of user
which sets up the filesystem for that user twice causing
the sharing codes collision detection to detect a lot of
collisions
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-10-07 09:57:41 +02:00
Lukas Reschke
766abeeae6
Merge pull request #1536 from nextcloud/backport-1489-ocs-status-code-when-app-is-disabled
...
[stable10] Return 404 on v2.php when the app is disabled
2016-09-28 23:02:43 +02:00
Morris Jobke
bf0dfa997f
Merge pull request #1526 from nextcloud/more-error-handling-in-copyr-stable10
...
[stable10] Graceful error handling and logging
2016-09-28 22:40:56 +02:00
Morris Jobke
3e93dbd404
Merge pull request #1522 from nextcloud/stable9.1-3f53730159d94bbc2b53129a4c750f5bab40a26e
...
[stable10] Fix mimetype detection inside hidden folders (#26138 ) (#2…
2016-09-28 22:03:02 +02:00
Morris Jobke
1a1ec21943
Merge pull request #1548 from nextcloud/stable9.1-d887671424e6a5980401f552f163062003afce94
...
[stable10] Change the minimum log level to fatal (#26213 )
2016-09-28 22:01:58 +02:00
Morris Jobke
43aa114169
Merge pull request #1533 from nextcloud/stable10-redo-1517
...
[stable10] Only use realpath for real directories (#26060 )
2016-09-28 22:01:29 +02:00
Juan Pablo Villafañez
6fd3974c8b
[stable9.1] Change the minimum log level to fatal ( #26213 )
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-27 18:40:13 +02:00
Joas Schilling
4077f7141f
Use the same URL everywhere
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-27 15:00:16 +02:00
Joas Schilling
0fac5146bd
Return the autoupdater value from the server
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-27 14:58:57 +02:00
Joas Schilling
bbbad09383
Return 404 on v2.php when the app is disabled
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-27 11:13:13 +02:00
Vincent Petry
4cbdf51ddb
Only use realpath for real directories ( #26060 )
...
In some cross-local-storage use cases, the Local storage is
instantiated with "/" as data directory. In such cases, calling
realpath() would cause PHP warnings when open_basedir is set.
This fix bypasses the realpath() call when dealing with a root storage.
Downstreaming of https://github.com/owncloud/core/pull/26060
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-27 00:15:27 +02:00
Morris Jobke
85d7b90b24
Revert "[stable10] Only use realpath for real directories ( #26060 )"
2016-09-27 00:12:23 +02:00
Morris Jobke
ffaa2512f3
Merge pull request #1517 from nextcloud/stable9.1-fix-openbasedir-realpath-warning
...
[stable10] Only use realpath for real directories (#26060 )
2016-09-27 00:11:42 +02:00