summaryrefslogtreecommitdiffstats
path: root/lib/public
Commit message (Collapse)AuthorAgeFilesLines
* Multiple fixesCarl Schwan2022-08-032-0/+175
| | | | | | | | | | | - 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>
* Fix view-only code after code review commentsVincent Petry2022-08-031-2/+4
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-08-032-8/+8
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-08-032-1/+94
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix reading blob data as resourceThomas Citharel2022-07-251-0/+3
| | | | | | | | | | | | | | | | 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>
* load widgets only of enabled appsArthur Schiwon2022-06-231-1/+1
| | | | | | | | | | | | | - 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>
* Merge pull request #32708 from nextcloud/unencrypted-size-24blizzz2022-06-111-0/+10
|\ | | | | [24] store unencrypted size in the unencrypted_size column
| * store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-031-0/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add the ISizeEstimationMigrator interface for method getExportEstimatedSizeCôme Chilliet2022-05-312-8/+43
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Implement getExportEstimatedSize in migratorsCôme Chilliet2022-05-311-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add a method to get estimated export size in IMigratorCôme Chilliet2022-05-311-0/+8
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* tell mysql to ignore the sort index for search queriesRobin Appelman2022-05-161-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use email settings in DAV searchLouis Chemineau2022-05-121-1/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use share setting in DAV searchLouis Chemineau2022-05-121-0/+8
| | | | | | 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>
* Merge pull request #31839 from nextcloud/feat/metadata-serverVincent Petry2022-04-144-0/+17
|\ | | | | Add a metadata service to store file metadata
| * Add a metadata service to store file metadataCarl Schwan2022-04-134-0/+17
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix migrators according to exceptionsVincent Petry2022-04-131-1/+1
| | | | | | | | | | | | | | | | 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>
* | Adapt user_migration APIs to have information about failuresCôme Chilliet2022-04-132-8/+23
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #31220 from nextcloud/enhancement/31005/temporary-passwordsVincent Petry2022-04-122-3/+57
|\ | | | | Temporary passwords for public non-anonymous protected shares (ie: files shared with an email recipient).
| * Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-112-3/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Use Migrators id instead of class namesCôme Chilliet2022-04-113-3/+3
| | | | | | | | | | | | | | 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>
* | Merge pull request #31848 from ↵Carl Schwan2022-04-111-0/+34
|\ \ | | | | | | | | | | | | nextcloud/performance/trottling-capability-frontent Don't inject Bruteforce capability info in the webui
| * | Don't inject Bruteforce capability info in the webuiCarl Schwan2022-04-071-0/+34
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Extend migrator interfaceChristopher Ng2022-04-081-0/+21
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | | Merge pull request #31676 from nextcloud/enh/ocp-owner-lockVincent Petry2022-04-087-0/+483
|\ \ \ | | | | | | | | Add public API for owner based file locking
| * | | Adapt LockScope to LockContext renameJulius Härtl2022-04-073-6/+7
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | | Add public API for owner based lockingJulius Härtl2022-04-047-0/+482
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #31713 from nextcloud/fed-performanceRobin Appelman2022-04-071-0/+35
|\ \ \ \ | |_|_|/ |/| | | Federated share performance improvements
| * | | don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-041-0/+35
| | |/ | |/| | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #31850 from nextcloud/performance/heartbeat-fetch-status-onceCarl Schwan2022-04-071-11/+20
|\ \ \ | | | | | | | | Fetch status in heartbeat controller only once
| * | | Fetch status in heartbeat controller only onceCarl Schwan2022-04-071-11/+20
| |/ / | | | | | | | | | | | | | | | Store the user status inside the event instead of fetching it again Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | Merge pull request #31194 from ↵Vincent Petry2022-04-062-4/+8
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * | | Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-052-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | optimize getById on LazyUserFolder to not require a full fs setupRobin Appelman2022-04-041-1/+12
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | allow getting mounts by providersRobin Appelman2022-04-041-2/+2
| |/ / |/| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Add a built-in profiler inside NextcloudCarl Schwan2022-04-045-0/+417
| |/ |/| | | | | | | | | The webui is provided by a seperate application named profiler Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add octetLength and charLength to function builder, and testsCôme Chilliet2022-03-241-0/+18
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Add missing PHPDoc in InvalidateMountCacheEventVincent Petry2022-03-241-0/+10
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Apply suggestions from code reviewRobin Appelman2022-03-241-1/+1
| | | | | | | | | | | | | | Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix method nameRobin Appelman2022-03-241-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add logic to perform a full filesystem setup when neededRobin Appelman2022-03-241-0/+45
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | update cached mounts when only specific providers have been setupRobin Appelman2022-03-241-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow getting mounts by providerRobin Appelman2022-03-241-0/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow getting cached mounts by path from the mount cacheRobin Appelman2022-03-241-0/+23
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31235 from nextcloud/techdebt/noid/extract-request-idJoas Schilling2022-03-221-0/+39
|\ \ | |/ |/| Extract request id handling to dedicated class so it can be injected without DB dependency
| * Extract request id handling to dedicated class so it can be injected manuallyJoas Schilling2022-02-231-0/+39
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #24166 from nextcloud/imaginary-prototypeCarl Schwan2022-03-181-0/+30
|\ \ | | | | | | Send images to Imaginary docker to generate previews
| * | Send images to imaginary docker to generate previewsVincent Petry2022-03-171-0/+30
| | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-Authored-by: Vincent Petry <vincent@nextcloud.com>
* | | Merge pull request #30768 from nextcloud/feat/chunked-mysql-joblist-removeCarl Schwan2022-03-181-0/+5
|\ \ \ | | | | | | | | Do chuncked job deletion
| * | | Do chuncked job deletionCarl Schwan2022-03-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is helpful in cases where we are deleting tons jobs at the same time in a gallera cluster. This doesn't happen often but this can create issues. Test plan: 1. Use https://github.com/nextcloud/quota_warning/pull/88 2. Change max to 1 3. Enabled/Disable quota_warning app and see jobs getting sucessfully added and removed Signed-off-by: Carl Schwan <carl@carlschwan.eu>