Roeland Jago Douma
290b4f2ece
Fix detection of non extention types
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-12-12 22:06:09 +07:00
Joas Schilling
d5d8bb0577
Try more methods
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-12 22:06:08 +07:00
Joas Schilling
663a42dfd5
Some more fixes in detecting the mimetype from the content
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-12 22:06:07 +07:00
Joas Schilling
a52c84b5b8
Allow to check for the mimetype by content only
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-12 22:06:06 +07:00
Maxence Lange
b10ab5a11e
adding share type circles
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2019-12-11 11:41:20 +07:00
Roeland Jago Douma
a0f4af8f4f
Merge pull request #18190 from nextcloud/backport/18149/stable15
...
[stable15] delay creation of the cert bundle
2019-12-10 13:38:43 +07:00
Joas Schilling
15a8537848
Correctly remove apps without any releases
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-03 19:11:42 +07:00
Arthur Schiwon
0f0cabafd6
delay creation of the cert bundle
...
fixes #18148
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-12-02 14:33:57 +07:00
Arthur Schiwon
700770c95e
pass through ServerNotAvailableException on app init
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-11-14 21:01:22 +07:00
Joas Schilling
de53c97acf
Always check via http and https whether htaccess is working
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-11-12 13:19:47 +07:00
Robin Appelman
0bf7b0432e
actually return the quote when getting global storage info
...
prevents 'undefined' index errors when 'include external storage in quota' is enabled
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-11-07 22:55:47 +07:00
Roeland Jago Douma
57d84ce7aa
Fix DAV mimetype search
...
Fixes #15048
Catches the case where a full mimetype is sumbitted in the where like
clause. Before we didn't catch this and it was just forwarded as is
causing invalid queries.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-10-29 07:35:42 +07:00
Joas Schilling
0174577164
Merge pull request #17013 from nextcloud/backport/16999/stable15
...
[stable15] Return the proper jailed path when requesting the root path
2019-10-10 08:58:09 +07:00
Christoph Wurst
f46db97acc
Fix l10n in federated file sharing
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-09-19 13:29:38 +07:00
Daniel Kesselberg
8e63c51d4d
Add uid to delete temp token query
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-09-18 16:12:16 +07:00
Arthur Schiwon
be25caeffb
set a storage availability delay on auth issues to avoid lock out
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-09-09 14:52:16 +07:00
Julius Härtl
0233384129
Return the proper jailed path when requesting the root path
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-09-05 07:24:46 +07:00
Joas Schilling
8544be0867
Undefined variable response when server is no nextcloud anymore
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-08-21 14:07:42 +07:00
Joas Schilling
c79156146b
Filter more configs
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-08-20 07:03:38 +07:00
Roeland Jago Douma
337aa1cd3c
Properly return an int in the getId function of the cache
...
fixes #16684
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-08-08 06:15:53 +07:00
Arthur Schiwon
8c956693a5
treat sensitive config keys by pattern
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-07-26 14:07:17 +07:00
Marcel Klehr
eb14a8fcba
Fix File#putContents(string) on ObjectStorage
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2019-07-17 20:40:05 +07:00
Roeland Jago Douma
7bd081ff84
Do not keep searching for recent
...
If userA has a lot of recent files. But only shares 1 file with userB
(that has no files at all). We could keep searching until we run out of
recent files for userA.
Now assume the inactive userB has 20 incomming shares like that from
different users. getRecent then basically keeps consuming huge amounts
of resources and with each iteration the load on the DB increases
(because of the offset).
This makes sure we do not get more than 3 times the limit we search for
or more than 5 queries.
This means we might miss some recent entries but we should fix that
separatly. This is just to make sure the load on the DB stays sane.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-07-17 05:48:53 +07:00
Morris Jobke
bbd4007753
Merge pull request #16215 from nextcloud/backport/16186/stable15
...
[stable15] Better check reshare permissions part2
2019-07-03 23:29:09 +07:00
Joas Schilling
132902337e
Unify the permission checking in one place only
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-03 21:31:40 +07:00
Joas Schilling
029ecb7966
Better check reshare permissions when creating a share
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-03 21:29:31 +07:00
Roeland Jago Douma
32c072853f
Fix notification casting
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-07-03 20:32:45 +07:00
Robin Appelman
cdc97ec9c3
verify that paths are valid for recursive local move
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-06-27 14:39:32 +07:00
Roeland Jago Douma
f63a2bfd97
Merge pull request #16083 from nextcloud/backport/15832/stable15
...
[stable15] Fix full text search for groupfolders
2019-06-26 15:48:57 +07:00
Joas Schilling
fdc532f753
Fall back to black for non-color values
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-06-26 08:18:31 +07:00
Morris Jobke
9ad616e221
Fix full text search for groupfolders
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-06-25 19:46:25 +07:00
Joas Schilling
bad2e92c89
Prevent faulty logs from nested setupFS calls
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-06-21 10:02:23 +07:00
Daniel Kesselberg
567fe4b833
Don't notify admins if no potentially over exposing links found
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-06-03 21:41:32 +07:00
Robin Appelman
2b845a7268
search files by id in shared storages last
...
this prevents unneeded recursion when the file is not in the share
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-05-29 19:58:44 +07:00
Julius Härtl
91bc8ba2cd
Check for free space on touch
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-28 13:03:53 +07:00
Roeland Jago Douma
d0f8fa4619
Check the actual status code for 204 and 304
...
The header is the full http header like: HTTP/1.1 304 Not Modified
So comparing this to an int always yields false
This also makes the 304 RFC compliant as the resulting content length
should otherwise be the length of the message and not 0.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-05-24 17:52:33 +07:00
Morris Jobke
1a8de51e25
Allow redis cluster to use password
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-05-22 11:48:18 +07:00
Morris Jobke
a68495b443
Fix l10n for SettingsManager by injecting the l10n factory
...
Fixes #10832
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-05-21 22:52:06 +07:00
Julius Härtl
32a18602fd
Only show sharing section if it has content
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-05-21 08:34:40 +07:00
Joas Schilling
eb8c2e98bd
fix class might be undefined
...
Co-Authored-By: blizzz <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-05-09 11:25:54 +07:00
Arthur Schiwon
04bb1510fd
remove args from logging of common-spelled methods dependent on class
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-05-09 11:25:54 +07:00
Arthur Schiwon
b5e4b774fa
remove setup args from logging
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-05-09 11:25:54 +07:00
Morris Jobke
740907101a
Use non-absolute logout URL to fix wrong URL in reverse proxy scenario
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2019-05-08 23:38:42 +07:00
Morris Jobke
e0ce0c8d97
Merge pull request #15307 from nextcloud/backport/15290/stable15
...
[stable15] take return of mkdir into consideration; photocache to not create a folder for deletion
2019-04-30 15:35:42 +07:00
Morris Jobke
2434b94956
Merge pull request #15139 from nextcloud/backport/15129/stable15
...
Backport/15129/stable15
2019-04-30 14:56:17 +07:00
Arthur Schiwon
ec9c1e2f52
take return of mkdir into account, throw exception on failure
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-04-30 07:27:32 +07:00
Roeland Jago Douma
ad5dcc2cd6
Always use a temp file for swift writes
...
Apparently the if statement doesn't work in all cases (even if I could
not reproduce it). So for the time being we will just not directly
stream to swift.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-04-24 07:02:46 +07:00
Joas Schilling
54219fb4cd
Use the querybuilder for the queries
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-17 15:33:57 +07:00
Joas Schilling
e77272e3fc
Allow to use Subqueries in from
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-17 15:33:57 +07:00
Roeland Jago Douma
7cbba3e717
Repair step for link shares
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-04-17 15:33:57 +07:00