Commit graph

10083 commits

Author SHA1 Message Date
Julius Härtl
68a0639450
Show unique displayname context in the sharing input
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-05 10:09:23 +01:00
Roeland Jago Douma
0c0064a9f0 Actually set the TTL on redis set
Else well the keys remain for ever and ever.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-12-21 13:55:55 +00:00
Morris Jobke
29ee385927 Fix typo
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-12-04 15:57:07 +00:00
Roeland Jago Douma
7dbb6ea7ba Remember me is not an app_password
While technically they are stored the same. This session variable is
used to indicate that a user is using an app password to authenticate.
Like from a client. Or when having it generated automatically.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-12-04 15:57:04 +00:00
Roeland Jago Douma
56604b02a8 Generate a new session id if the decrypting the session data fails
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-12-04 12:00:38 +00:00
Christoph Wurst
0b8ec429fd
Fix the config key on the sharing expire checkbox
We don't use `shareapi_internal_enforce_expire_date` anywhere.
`shareapi_enforce_internal_expire_date` is the one we want.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-01 22:20:28 +01:00
lui87kw
3952be00ec Extra white space to follow other ifs
Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
2020-11-25 11:55:21 +00:00
bladewing
0057f85ad7 Avoid substr() error when strpos returns false
"Exception: substr() expects parameter 3 to be int, bool given" can occur on Line 378 $mimePart = substr($icon, 0, strpos($icon, '-'));
This happens, when '-' is not found and strpos returns false instead of an int.
When this occurs, e.g., Activity hangs.

Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
2020-11-25 11:55:20 +00:00
Julius Härtl
ccd28f2e64
Only check path for being accessible when the storage is a object home
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-24 15:37:48 +01:00
Carlos Ferreira
cf7fe02b43 Simple typo in comments 2020-11-20 19:50:55 +00:00
Roeland Jago Douma
5aca22f825
Merge pull request #24078 from nextcloud/backport/23168/stable18
[stable18] add mount point to quota warning message
2020-11-16 19:29:10 +01:00
Roeland Jago Douma
93b9cab7b2
Merge pull request #24161 from nextcloud/backport/24069/stable18-fix-default-internal-expiration-date
[stable18] Fix default internal expiration date
2020-11-16 19:17:33 +01:00
Julius Härtl
396a50fb24
Merge pull request #24077 from nextcloud/backport/23741/stable18 2020-11-16 17:06:12 +01:00
Daniel Calviño Sánchez
bae712b68e Fix default internal expiration date
The default expiration date for internal shares was set from the default
link expiration date instead of the internal one.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-11-16 15:37:12 +01:00
Joas Schilling
353947a7db Don't throw on SHOW VERSION query
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-16 09:05:44 +00:00
Joas Schilling
e29eb55f8b
Only use index of mount point when it is there
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-12 20:27:49 +01:00
Robin Appelman
141eaab9c4
add mount point to quota warning message
makes it more clear to the user what the quota applies to

Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-11-12 20:26:11 +01:00
Ashod Nakashian
a428cfeb26 Unlock when promoting to exclusive lock fails
In certain cases changeLock to EXCLUSIVE fails
and throws LockedException. This leaves the
file locked as SHARED in file_put_contents,
which prevents retrying (because on second
call file_put_contents takes another SHARED
lock on the same file, and changeLock doesn't
allow more than a single SHARED lock to promote
to EXCLUSIVE).

To avoid this case, we catch the LockedException
and unlock before re-throwing.

Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-12 19:07:46 +00:00
Roeland Jago Douma
dafd09d30b
Merge pull request #23953 from nextcloud/backport/23922/stable18
[stable18] Improve query type detection
2020-11-12 14:16:27 +01:00
Joas Schilling
92d8d339e3
Improve query type detection
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-12 12:51:20 +01:00
Joas Schilling
ddc94e44b7 Fix iLike() falsely turning escaped % and _ into wildcards
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-11 09:27:27 +00:00
Julius Härtl
338498f967
Only retry fetching app store data once every 5 minutes in case it fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-09 11:47:22 +01:00
Roeland Jago Douma
524e1f3c12 Bearer must be in the start of the auth header
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-11-06 08:26:15 +00:00
Morris Jobke
bbf27ba026 No need to check if there is an avatar available, because it is generated on the fly nowadays
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-11-02 18:15:35 +00:00
Morris Jobke
8bcbb94b4e Use lib instead if core as l10n module in OC_Files
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-10-27 16:34:54 +00:00
Roeland Jago Douma
45aca67b5f Fix updates of NULL appconfig values
The comparisson of NULL is a bit special.
So we need to handle this a tad beter else it might not replace NULL
values. or allow you to set NULL values on updates.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-10-23 08:49:40 +00:00
Morris Jobke
afeafd91a4
Clear cached app config while waiting for the SCSSCache to finish processing the file
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-10-16 18:28:54 +02:00
Morris Jobke
cf26392b98 SCSSCacher - Lock should not be removed
This is within the failed lock acquiring branch. So the lock is free by another process and should not be removed because the cached file (that was created by the process having the lock) appeared on the filesystem.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-10-16 11:32:27 +00:00
Morris Jobke
8c44b2ee1f Provide log statements for SCSS cache
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-10-16 07:55:34 +00:00
Julius Härtl
b66f4cf2dc
Use paginated search for contacts
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-10-14 14:02:08 +02:00
Arthur Schiwon
fb39aec4fd contactsmanager shall limit number of results early
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-10-13 15:45:02 +00:00
Joas Schilling
90fc06eb7c Only run the query to get the account data once
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-06 10:53:26 +00:00
Roeland Jago Douma
07c188e7e3
Merge pull request #22443 from nextcloud/backport/22421/stable18
[stable18] show better quota warning for group folders and external storage
2020-10-01 15:11:16 +02:00
Roeland Jago Douma
79660f6828
Merge pull request #23088 from nextcloud/backport/23013/stable18
[stable18] Show federation and email results also with exact user match unless c…
2020-10-01 11:11:14 +02:00
Joas Schilling
af2868cb0e
Show federation and email results also with exact user match unless containing @
Before when you have a user "smith" and a federated user "smith@example.com"
you could see the federation result with "smit" but not with "smith" anymore.
With most LDAP configurations and local backend setups this is disturbing and
causes issues.
The idea of not showing the email and federation on a matching user was with:
Local user registered with "smith@example.com" user id and having that same
email / cloud id in your contacts addressbook. So we now only hide those
"side results" when the search does contain an @

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-01 09:34:44 +02:00
Roeland Jago Douma
7b3510491e
Merge pull request #22802 from nextcloud/backport/stable18/22116-22648-22761
[stable18]  Fix share transfer of single files and on the transfered node
2020-10-01 08:44:51 +02:00
Robin Appelman
dd1dbc2f3d
show better quota warning for group folders and external storage
instead of showing the generic 'Your storage is full' message, better explain that it's the group folder/external storage that is full

Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-09-29 15:26:06 +02:00
Roeland Jago Douma
f1250727bd
Merge pull request #23091 from nextcloud/backport/23074/stable18
[stable18] Do not match sharees on an empty email address
2020-09-29 13:37:23 +02:00
Joas Schilling
6f18e4ca78
Merge pull request #22743 from nextcloud/backport/22589/stable18
[stable18] Allow additional personal settings via normal registration
2020-09-29 09:35:24 +02:00
Christoph Wurst
fb966b49b5 Do not match sharees on an empty email address
When asking for sharees we compare not only UID and displayname but also
the email address. And if that matches we return the sharee as an exact
match. This logic had a flaw as in that it also matched the empty string
to users with no email address.

This is most noticeable when you disable sharee enumeration and open the
ownership transfer dialog. It suggested other users of the instance
before. This has stopped now.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-29 07:33:49 +00:00
Julius Härtl
bfd2f39fed
Transfer shares of the transferred root node
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-17 19:01:48 +02:00
korelstar
10c0ed6cee fix: file quota was not applied in all cases 2020-09-17 07:13:27 +00:00
Arthur Schiwon
776ad073c8
makes LDAP's group updater dispatch type events
* fixes group share updates on added users

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-09-10 15:23:23 +02:00
Roeland Jago Douma
af6b57cd0d Fix reading empty files from objectstorage
Since we try to do range requests this will fail hard.
However since empty files are not that interesting to read anyways we
just read from an emptry memory stream.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-09 19:47:30 +00:00
Morris Jobke
7591a94902
Merge pull request #22746 from nextcloud/backport/22646/stable18
[stable18] Fix detecting text/x-php mimetype and secure mimetype mapping
2020-09-09 16:51:05 +02:00
Julius Härtl
b3c5271c89 Properly add both mimetypes to secure mimetype mapping
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-09 12:17:27 +00:00
Joas Schilling
7362145dec Allow additional personal settings via normal registration
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-09 11:25:47 +00:00
Joas Schilling
54a5f938f9 Warn about adding NotNull columns with nullable default
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-07 19:00:03 +00:00
Joas Schilling
117705c2df
Use the correct root to determinate the webroot for the resource
Since all the compiled routes are based on the server webroot,
we have to use this, independent from which app this belongs to.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-04 13:20:42 +02:00
Roeland Jago Douma
87a66c8675
Fix app password updating out of bounds
When your password changes out of bounds your Nextcloud tokens will
become invalid. There is no real way around that. However we should make
sure that if you successfully log in again your passwords are all
updates

* Added event listener to the PostLoggedInEvent so that we can act on it
  - Only if it is not a token login
* Make sure that we actually reset the invalid state when we update a
  token. Else it keeps being marked invalid and thus not used.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-04 09:18:00 +02:00