Joas Schilling
a3c8534b7b
Make sure memory limit is > post size and upload filesize
7 years ago
Thomas Müller
6eba111e09
Fix failing preview unit tests (#26039)
7 years ago
Roeland Jago Douma
959bf0d1a7
Cache the build ControllerName
Often a route.php file will have many N routes but only M controllers.
Where N >= M. Which means that in most cases the ControllerName will be
converted multiple times. This is of course far from ideal.
Note that this is per app so the cache will contain at most N entries.
Which is not to bad.
7 years ago
Morris Jobke
6bb95de1c5
Adding a optional disclaimer to the anonymous upload page
7 years ago
Joas Schilling
0cec06d0c8
Change updater URL
7 years ago
Roeland Jago Douma
fb4850ffa8
Fix intergrity checker
* Set salt length to 0
See https://tools.ietf.org/html/rfc3447#page-38
* Fix tests for new phpunit
7 years ago
Thomas Müller
1631ef5acc
Initialize array elements properly
8 years ago
Robin Appelman
e8e950a4d2
more efficient querying of numeric storage ids
7 years ago
Morris Jobke
05580f0242
Fix updater URL
7 years ago
Roeland Jago Douma
240798329d
Set proper content type on OCS responses
7 years ago
Joas Schilling
7c0951244a
Deprecate getEditionString()
7 years ago
Joas Schilling
43ff2f05fd
Correctly remove admin sections and settings
7 years ago
Roeland Jago Douma
3c55fe6bab
Split OCS version handling
This cleans up a bit the OCSController/Middleware. Since the 2 versions
of OCS differ a bit. Moved a lot of stuff internal since it is of no
concern to the outside.
7 years ago
Joas Schilling
fb04c56827
Null !== void, those methods are void
7 years ago
Roeland Jago Douma
7fb88ec506
Use proper ALTER ROLE syntax
Fixes #1260
See https://www.postgresql.org/docs/9.0/static/sql-alterrole.html
7 years ago
Joas Schilling
24d90a4bb1
Correctly remove the charset from finfo mimetype
7 years ago
Christoph Wurst
8acb734854
add 2fa backup codes app
* add backup codes app unit tests
* add integration tests for the backup codes app
7 years ago
Roeland Jago Douma
0228bc6e66
ACCEPT_LANGUAGE goes before default_langauge
See https://github.com/nextcloud/server/issues/970
Before we had
1. Users settings in personal settings
2. Admins default language settings
3. Accept-Language settings of the browser
However this is not in line with
https://www.w3.org/International/questions/qa-lang-priorities
So this changes the order to
1. Users settings in personal settings
3. Accept-Language settings of the browser
2. Admins default language settings
7 years ago
Joas Schilling
b072c6c943
Move navigation entries without order to the end
7 years ago
Roeland Jago Douma
7f84f05e4d
Cache parsing of info.xml
7 years ago
Morris Jobke
7f8c5ed497
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
7 years ago
Morris Jobke
a3c1d74829
Remove unneeded Windows logic
7 years ago
Joas Schilling
de96c5b17b
Allow to validate the password_policy app
7 years ago
Roeland Jago Douma
21a87d3c2e
No body or content-length for 204 and 304 responses
See: https://tools.ietf.org/html/rfc7230#section-3.3
7 years ago
Vincent Petry
669b0bc2ae
Prevent error with orphaned shares when updating user mount cache
7 years ago
Roeland Jago Douma
14136295b7
Cache avatars properly
* Set proper caching headers for avatars (15 minutes)
* For our own avatar use some extra logic to invalidate when we update
7 years ago
Thomas Müller
82e8762c84
Fix issues where some user settings cannot be loaded when the user id differs in case sensitivity - fixes #25684 (#25686)
7 years ago
Thomas Müller
df1cc94c23
Some cleanup within OC_Image (#25875)
7 years ago
Jörn Friedrich Dreyer
d5518735c9
always return numeric storage id as int, also check type equality in test asserts
7 years ago
Robin Appelman
6c93fe08f5
dont get bruteforce delay twice
7 years ago
Joas Schilling
f41c8c0089
Check if the file isReadable() before sending a (cached) preview
7 years ago
Jan-Christoph Borchardt
0517f41b3f
fix ordering of user menu entries
7 years ago
Roeland Jago Douma
f805aff67c
Always use the LazyRoot
7 years ago
Julius Haertl
fdab008231
Remove internal from getThemingDefaults
7 years ago
Robin Appelman
fb88d66857
optimize getUserFolder for the common case
7 years ago
Robin Appelman
2693ae870e
cache user folders
7 years ago
Robin Appelman
b2d365734a
cache root id in mountpoint
7 years ago
Robin Appelman
1c3b1e5797
add stacktrace to query logger
7 years ago
Roeland Jago Douma
4e1d501696
Dark autoloader magic for ThemingDefaults
7 years ago
Christoph Wurst
6af2efb679
prevent infinite redirect loops if the there is no 2fa provider to pass
This fixes infinite loops that are caused whenever a user is about to solve a 2FA
challenge, but the provider app is disabled at the same time. Since the session
value usually indicates that the challenge needs to be solved before we grant access
we have to remove that value instead in this special case.
7 years ago
Joas Schilling
c7c53aefb2
Use the lazy root to make tests pass 🙈
7 years ago
Julius Haertl
80fe499707
Theming: Add logo and background to ThemingDefaults
7 years ago
Robin Appelman
a0c2342c20
prevent infinite recursion while getting storage from mount
7 years ago
Lukas Reschke
0747e96b9c
Cache registered autoloaders
This saves more than 20ms (!) on every request, the previous problem was that `\OC_App::registerAutoloading` calls `\OC\AppFramework\App::buildAppNamespace` which parses the appinfo.xml. Since that was also called multiple times (e.g. on cloud.nextcloud.com over 200 times) that had a significant performance impact. Also on simple PROPFIND requests.
https://blackfire.io/profiles/compare/65a53e6e-7f35-4974-b559-4c81abd01c3b/graph shows the difference nicely.
7 years ago
Arthur Schiwon
b13092065a
hide parameters of tryLogin when logging
7 years ago
Joas Schilling
94432c089f
Save the container with the app's namespace so we can resolve it
7 years ago
Robin Appelman
e316a7ade7
Allow jail wrappers to lazily initialize the source storage
7 years ago
Robin Appelman
5e44a2d868
Allow storage wrappers to lazily initialize the source storage
7 years ago
Arthur Schiwon
056c1ab035
fix wrong var name
7 years ago
Arthur Schiwon
7972fa5527
enlist only registered sections that also have settings registered to
7 years ago