Commit graph

11460 commits

Author SHA1 Message Date
Vincent Petry
826654bb70 Merge pull request #25165 from owncloud/stable9-capped-user-cache
[stable9] Capped cache for user config
2016-06-20 17:15:18 +02:00
Vincent Petry
a3111e8589 Merge pull request #25160 from owncloud/fix-oracle-endless-loop-stable9
Do not recurse link share fetching
2016-06-17 15:24:47 +02:00
Jörn Friedrich Dreyer
0e3682d810 Capped cache for user config 2016-06-17 12:46:28 +02:00
Roeland Jago Douma
2d7bbf4a63
Do not recurse link share fetching
* Might fix an issue on oracle
2016-06-17 11:09:27 +02:00
Vincent Petry
7aa825f7dc Revert "[stable9] Remove shares of the root folder" (#25157) 2016-06-17 11:08:26 +02:00
Vincent Petry
b5d3e877f1 Remove shares of the root folder (#25138) 2016-06-17 10:06:08 +02:00
Vincent Petry
82384ab91c Merge pull request #25149 from owncloud/backport25146
–emit correct signal when disabling an app
2016-06-16 18:06:48 +02:00
Jörn Friedrich Dreyer
3ac02c9032 –emit correct signal when disabling an app 2016-06-16 17:17:02 +02:00
Vincent Petry
a9c98daffb
Capped cache for cache info in UserMountCache 2016-06-15 13:02:39 +02:00
Vincent Petry
9e3cf794ea
Use capped cache for encryption's user access list 2016-06-13 17:47:57 +02:00
Roeland Douma
7863987b19 Repair job to fix permissions for avatars (#25068)
Backport of #24898

Cherry-picked:
1b66db72d9
60225284f3
28d9ad2817

But manually since we renamed stuff and the repair procedures changed
2016-06-13 12:47:02 +02:00
Vincent Petry
9dff5501e8 Merge pull request #25045 from owncloud/stable9-admin-datadircheck-fix
[stable9] Use temporary htaccesstest.txt for data dir security check
2016-06-09 15:59:01 +02:00
Vincent Petry
eb34e95fd3
Use temporary htaccesstest.txt for data dir security check 2016-06-09 11:59:42 +02:00
Robin Appelman
d46cb39e3c
skip scanning for a user when the user is not setup yet 2016-06-09 11:37:02 +02:00
VicDeo
7f3f06cdd9 Fix update from 9.0.0 and 9.0.1 (#24854) 2016-06-07 09:46:53 +02:00
Joas Schilling
afb4c1e694 Allow public upload when the quota is unlimited (#24988) 2016-06-06 13:48:38 +02:00
Vincent Petry
7f3bfeffe2 Merge pull request #24921 from owncloud/stable9-backport-24795
[9.0] Allow opening the password reset link in a new window when …
2016-06-02 15:31:36 +02:00
Vincent Petry
4eb87be488 Merge pull request #24944 from owncloud/fix_21173_stable9
stable9: normalize path in getInternalPath
2016-06-02 15:30:47 +02:00
Vincent Petry
8f04bf3793
Backport of share id as string fix 2016-06-01 17:48:35 +02:00
Georg Ehrke
a08c9b3526
normalize path in getInternalPath 2016-06-01 13:06:59 +02:00
Joas Schilling
69e54bde1f
Allow opening the password reset link in a new window when its a URL 2016-06-01 12:15:10 +02:00
Robin Appelman
2ca5f3f957
trigger size calculation after scanning 2016-06-01 10:27:56 +02:00
Lukas Reschke
2516d07fdd
[stable9] Properly check for mbstring extension
mb_detect_encoding is in the fallback we ship in the polyfill library, mb_strcut is not. Thus this lead to a false positive and ownCloud would just break.
2016-05-31 08:15:18 +02:00
Joas Schilling
abd8475336 Only show message in the UI when the checker is enabled (#24773) 2016-05-30 14:50:45 +02:00
Piotr Filiciak
002a7f8294 replaced UnseekableException => NotPermittedException 2016-05-25 15:38:48 +02:00
Vincent Petry
8c439643a1
Lowercase class name for unseekableexception
Because 9.1 was PSR-4 and the backport goes back to the old style
2016-05-25 11:13:06 +02:00
Piotr Filiciak
7a791c5472
Code style and doc fix 2016-05-25 11:11:56 +02:00
Piotr Filiciak
f29f85709a
Http Range requests support in downloads
Http range requests support is required for video preview
2016-05-25 11:11:47 +02:00
Vincent Petry
3d4f29f622 Merge pull request #24417 from owncloud/fix_24182_9.0
[stable9] first call the post_login hooks, before we call getUserFolder.
2016-05-24 10:41:09 +02:00
Joas Schilling
3c73e54eb9
Make sure that installed is a boolean 2016-05-23 13:23:51 +02:00
Joas Schilling
5da9f10af2
Remove the password from the validateUserPass() method as well 2016-05-19 12:11:31 +02:00
Vincent Petry
173e304be9 Merge pull request #24414 from owncloud/stable9_24405
[Stable9] Use a CappedCache in the user database backend
2016-05-19 10:31:31 +02:00
Vincent Petry
ceea3e9104 Merge pull request #24705 from owncloud/locking-mark-reload-free-9
[9.0] free up memory when releasing the last shared lock
2016-05-19 10:28:23 +02:00
Vincent Petry
fe1b8adf08 Merge pull request #24676 from owncloud/stable9-fixchunkttl
[stable9] Allow chunk GC mtime tolerance for unfinished part chunks
2016-05-18 18:19:26 +02:00
Robin Appelman
e36d70c0de free up memory when releasing the last shared lock 2016-05-18 16:19:35 +02:00
Vincent Petry
dfc0a7a4a6
Allow chunk GC mtime tolerance for unfinished part chunks
Whenever part chunks are written, every fwrite in the write loop will
reset the mtime to the current mtime. Only at the end will the touch()
operation set the mtime to now + ttl, in the future.

However the GC code is expecting that every chunk with mtime < now are
old and must be deleted. This causes the GC to sometimes delete part
chunks in which the write loop is slow.

To fix this, a tolerance value is added in the GC code to allow for
more time before a part chunk gets deleted.
2016-05-17 17:15:09 +02:00
Vincent Petry
de97110f58 Merge pull request #24441 from owncloud/backport-24432-never-save-app-language-into-request-lang
[9.0] Do not save the language as request lang for apps when we didn't find…
2016-05-17 16:15:05 +02:00
Vincent Petry
56031fe155 Merge pull request #24540 from owncloud/stable9-do-not-automatically-try-to-enable-index-php-less-urls
[Stable9] do not automatically try to enable index php less urls
2016-05-13 16:13:09 +02:00
Robin Appelman
f8979a9ee2 cap the normalized path cache (#24390) 2016-05-12 16:24:56 +02:00
Lukas Reschke
283347a026 Remove repair steps for broken updater repair (#24438)
That's only required for an update to 9.0.2, the updater server has the required logic to ensure that clients get the right update delivered.
2016-05-12 12:08:54 +02:00
Lukas Reschke
3505776b6e
Make update server URL configurable
Currently testing the updates is a big problem and not really super easy possible. Since we now have a new updater server we should also make this configurable so that people can properly test updates.
2016-05-11 14:37:53 +02:00
Thomas Müller
d7da0ac1dc Merge pull request #24384 from owncloud/backport-24327-memory-usage-in-callForAllUsers
[9.0] Better callForAllUsers memory usage
2016-05-11 14:37:13 +02:00
Thomas Müller
750aeda8b7
Yo-ho-oh - Murder all band 'o pirates - backport of #24550 2016-05-11 11:22:08 +02:00
Lukas Reschke
b78625e0ae
Add repair step for copying the RewriteBase 2016-05-10 17:19:45 +02:00
Lukas Reschke
fefb59e7d0
Do not automatically try to enable index.php-less URLs
The current logic for mod_rewrite relies on the fact that people have properly configured ownCloud, basically it reads from the `overwrite.cli.ur
l` entry and then derives the `RewriteBase` from it.

This usually works. However, since the ownCloud packages seem to install themselves at `/owncloud` (because subfolders are cool or so…) _a lot_ of people have just created a new Virtual Host for it or have simply symlinked the path etc.

This means that `overwrite.cli.url` is wrong, which fails hard if it is used as RewriteBase since Apache does not know where it should serve files from. In the end the ownCloud instance will not be accessible anymore and users will be frustrated. Also some shared hosters like 1&1 (because using shared hosters is so awesome… ;-)) have somewhat dubious Apache configurations or use versions of mod_rewrite from the mediveal age. (because updating is money or so…)

Anyhow. This makes this explicitly an opt-in configuration flag. If `htaccess.RewriteBase` is set then it will configure index.php-less URLs, if
admins set that after installation and don't want to wait until the next ownCloud version they can run `occ maintenance:update:htaccess`.

For ownCloud 9.0 we also have to add a repair step to make sure that instances that already have a RewriteBase configured continue to use it by copying it into the config file. That way all existing URLs stay valid. That one is not in this PR since this is unneccessary in master.

Effectively this reduces another risk of breakage when updating from ownCloud 8 to ownCloud 9.

Fixes https://github.com/owncloud/core/issues/24525, https://github.com/owncloud/core/issues/24426 and probably some more.
2016-05-10 16:49:36 +02:00
Petr Svoboda
7fb631a13b solves problem with moving files via WebDAV
When moving files via WebDAV I sometimes got 

PHP Fatal error:  Nesting level too deep - recursive dependency? in /var/www/owncloud/lib/private/files/view.php on line 729

This small change has fixed the problem for me
2016-05-04 17:23:12 +02:00
Joas Schilling
f7f9ef55b6
Do not save the language as request lang for apps when we didn't find any 2016-05-04 14:07:07 +02:00
Björn Schießle
6c797eed82
first call the post_login hooks, before we call getUserFolder.
The login process needs to be completed before we can safely create
the users home folder. For example we need to give encryption a chance
to initialize the users encryption keys in order to copy the skeleton
files correctly
2016-05-03 14:16:17 +02:00
Thomas Müller
f9aef7ab9f
Fixes #23899 2016-05-03 14:14:59 +02:00
Roeland Jago Douma
1c7ec3a7f5
Use a CappedCache in the user database backend
When running with a user database backend on large installations the
cache can grow to significant sizes. This can be especially problematic
when running big cron/repair jobs.
2016-05-03 13:08:30 +02:00