Joas Schilling
1010fbd2ed
Also copy bruteforce meta data when converting DataResponse to JSONResponse
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-14 19:46:38 +01:00
Christoph Wurst
fa08275ab2
Merge pull request #35824 from nextcloud/backport/35614/stable24
...
[stable24] Fix array to string conversion in errorlog writer
2023-01-25 19:34:19 +01:00
John Molakvoæ
467c213795
Merge pull request #35094 from nextcloud/invalidateTokensWhenDeletingOAuthClient
...
fixes https://github.com/nextcloud/server/issues/35068
2023-01-06 08:52:57 +01:00
Vincent Petry
cabe108404
Merge pull request #35818 from nextcloud/backport/35789/stable24
...
[stable24] Allow additional Sabre plugins in publicwebdav.php
2023-01-05 09:44:04 +01:00
Julien Veyssier
abf8b774ff
manual backport of #35789 , dispatch BeforeSabrePubliclyLoadedEvent to allow adding additional Sabre plugins in publicwebdav.php
...
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-01-03 10:12:13 +01:00
Côme Chilliet
5421510b12
Make it clear that file sizes may be float on 32bits
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-02 12:24:05 +01:00
Artur Neumann
a0788a8bc8
added @since tag
...
Signed-off-by: Artur Neumann <artur@jankaritech.com>
2022-12-20 16:26:49 +00:00
Artur Neumann
0570327c7e
public interface to invalidate tokens of user
...
Signed-off-by: Artur Neumann <artur@jankaritech.com>
2022-12-20 16:26:49 +00:00
Christoph Wurst
125ddf01cc
fix(logging): Fix array to string conversion in errorlog writer
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-12-19 13:46:38 +00:00
Christopher Ng
6f6e2796de
Add description for calendar uri
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-11-09 18:26:02 +00:00
Julius Härtl
6dc2b162c5
Emit typed event when preview is requested
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-27 18:51:53 +02:00
Carl Schwan
3ec8dce3cc
Fix psalm errors fron the end of the baseline file
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-10-27 15:50:22 +02:00
Côme Chilliet
52c96c2ba9
Update lib/public/User/Backend/ICountMappedUsersBackend.php
...
Co-authored-by: Simon L. <szaimen@e.mail.de>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
2022-10-25 14:51:03 +02:00
Côme Chilliet
d51167cf68
Add missing file
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-10-25 14:51:02 +02:00
Arthur Schiwon
6b220fffb7
LDAP to no register new users when outside of fair use or over limits
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-10-24 10:05:31 +02:00
Carl Schwan
aafaa39515
Multiple fixes
...
- Fix tests
- Use non deprecated event stuff
- Add a bit of type hinting to the new stuff
- More safe handling of instanceOfStorage (share might not be the first
wrapper)
- Fix resharing
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-03 13:24:38 +02:00
Vincent Petry
cc7564758b
Fix view-only code after code review comments
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-08-03 13:24:20 +02:00
Vincent Petry
cf3d92015b
Fix share attribute related tests + code style
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-08-03 13:24:19 +02:00
Vincent Petry
f1ab964819
Add share attributes + prevent download permission
...
Makes it possible to store download permission
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-08-03 13:24:13 +02:00
Thomas Citharel
618bbb313c
Fix reading blob data as resource
...
PostgreSQL returns data as resource when using IQueryBuilder::PARAM_LOB
(which is used for QBMapper).
Previously we just converted this resource using settype, which produced
things like "Resource id #14 " instead of the actual resource data.
Now we read the stream correctly if the returned data is a resource
See context at #22472
Fixes #22439
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-07-25 15:59:36 +00:00
Arthur Schiwon
28eac9c961
load widgets only of enabled apps
...
- per design, all enabled apps have their registration run
- limitations, e.g. enabled by group, are not considered in that state,
because we do not have a session (and might need apps?)
- before instantiation of widget it has to be checked whether the providing
app is actually enabled for the logged in user.
- a public interface is being changed, but it is not meant to be
implemented or used outside of the core handling. Therefore save to
backport.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-23 15:48:33 +00:00
blizzz
eeb4de0763
Merge pull request #32708 from nextcloud/unencrypted-size-24
...
[24] store unencrypted size in the unencrypted_size column
2022-06-11 00:42:34 +02:00
Robin Appelman
fd2afe604e
store unencrypted size in the unencrypted_size column
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-06-03 15:43:50 +02:00
Côme Chilliet
5a7752dcfa
Add the ISizeEstimationMigrator interface for method getExportEstimatedSize
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-31 00:19:13 +00:00
Côme Chilliet
dde192da4a
Implement getExportEstimatedSize in migrators
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-31 00:19:13 +00:00
Côme Chilliet
c16b72f588
Add a method to get estimated export size in IMigrator
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-31 00:19:13 +00:00
Robin Appelman
32cd1bed38
tell mysql to ignore the sort index for search queries
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-05-16 09:53:43 +00:00
Louis Chemineau
11bd644251
Use email settings in DAV search
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-05-12 15:05:10 +02:00
Louis Chemineau
55fda0b769
Use share setting in DAV search
...
shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it.
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-05-12 15:05:05 +02:00
Vincent Petry
3ca797129c
Merge pull request #31839 from nextcloud/feat/metadata-server
...
Add a metadata service to store file metadata
2022-04-14 13:39:31 +02:00
Vincent Petry
78c8e57896
Fix migrators according to exceptions
...
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-13 16:52:40 +02:00
Côme Chilliet
a77ffe8593
Adapt user_migration APIs to have information about failures
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-13 16:52:39 +02:00
Carl Schwan
7817845538
Add a metadata service to store file metadata
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-13 14:06:29 +02:00
Vincent Petry
483741ff36
Merge pull request #31220 from nextcloud/enhancement/31005/temporary-passwords
...
Temporary passwords for public non-anonymous protected shares (ie: files shared with an email recipient).
2022-04-12 09:46:31 +02:00
Cyrille Bollu
c6a5c07041
Adds a "Request password" button to the public share authentication page for shares
...
of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing
non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves.
- Creates a migration step for the files_sharing app to add the 'password_expiration_time'
attribute to the oc_shares table.
- Makes share temporary passwords' expiration time configurable via a system value.
- Adds a system config value to allow permanent share passwords
-Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue
See https://github.com/nextcloud/server/issues/31005
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
2022-04-11 21:58:24 +02:00
Côme Chilliet
dda51d49d7
Use Migrators id instead of class names
...
This will help with UI and means migrators can move in namespaces
without changing export format.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-11 13:59:27 +00:00
Carl Schwan
682468ef5c
Merge pull request #31848 from nextcloud/performance/trottling-capability-frontent
...
Don't inject Bruteforce capability info in the webui
2022-04-11 10:50:52 +02:00
Christopher Ng
2273ddc873
Extend migrator interface
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-04-08 19:31:22 +00:00
Vincent Petry
0d7d28e530
Merge pull request #31676 from nextcloud/enh/ocp-owner-lock
...
Add public API for owner based file locking
2022-04-08 17:43:26 +02:00
Robin Appelman
9834350ac3
Merge pull request #31713 from nextcloud/fed-performance
...
Federated share performance improvements
2022-04-07 18:53:36 +00:00
Carl Schwan
0f924e086a
Merge pull request #31850 from nextcloud/performance/heartbeat-fetch-status-once
...
Fetch status in heartbeat controller only once
2022-04-07 18:20:43 +02:00
Carl Schwan
69b36fc2c5
Don't inject Bruteforce capability info in the webui
...
This capability do DB access and as far I know is not used by the webui.
This remove one DB query for each page load.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-07 17:33:29 +02:00
Carl Schwan
1dbe7dafe2
Fetch status in heartbeat controller only once
...
Store the user status inside the event instead of fetching it again
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-07 15:16:34 +02:00
Julius Härtl
9b408d556d
Adapt LockScope to LockContext rename
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-07 11:52:16 +02:00
Vincent Petry
b8b4d247b4
Merge pull request #31194 from nextcloud/feat/allow-to-exclude-groups-from-password-enforcement
...
Allow to disable password policy enforcement for selected groups
2022-04-06 10:13:23 +02:00
Carl Schwan
a29251e02d
Allow to disable password policy enforcement for selected groups
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Co-authored-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-05 17:04:17 +00:00
Robin Appelman
89d3cd1447
don't overwrite the etag from storage backends that already provide "good" etags
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 16:48:18 +02:00
Robin Appelman
44a8ebdc1f
optimize getById on LazyUserFolder to not require a full fs setup
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 15:40:16 +02:00
Robin Appelman
99ac46d8f5
allow getting mounts by providers
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-04 14:57:56 +02:00
Carl Schwan
7d272c54d0
Add a built-in profiler inside Nextcloud
...
The webui is provided by a seperate application named profiler
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-04 10:28:26 +02:00