summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Make config file saving safe against write failures"Joas Schilling2022-09-191-29/+25
|
* Merge pull request #32740 from jasperweyne/patch-2Carl Schwan2022-09-191-0/+2
|\ | | | | Fix open_basedir issues by AWS SDK
| * Merge branch 'master' into patch-2Jasper Weyne2022-08-11227-1270/+2503
| |\
| * | Disable ~/.aws/config access by S3ConnectionTraitJasper Weyne2022-06-071-0/+2
| | | | | | | | | | | | | | | This commit sets the 'use_aws_shared_config_files' option to false, in order to disable configuration loading from ~/.aws/config by the AWS SDK, specifically the S3Client. It is a continuation of #27040, as that PR only changed the behaviour of the CredentialsProvider; this change affects the ConfigurationProvider as well. Signed-off-by: Jasper Weyne <jasperweyne@gmail.com>
* | | [tx-robot] updated from transifexNextcloud bot2022-09-198-4/+20
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2022-09-186-0/+24
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | [tx-robot] updated from transifexNextcloud bot2022-09-17138-548/+558
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #34073 from nextcloud/login-email-filterVincent Petry2022-09-161-0/+3
|\ \ \ | | | | | | | | dont try email login if the provider username is not a valid email
| * | | dont try email login if the provider username is not a valid emailRobin Appelman2022-09-141-0/+3
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #24596 from kofemann/dcache-wormVincent Petry2022-09-161-0/+14
|\ \ \ \ | | | | | | | | | | make NextCloud WORM file system friendly
| * | | | config: add a switch to control truncate before updateTigran Mkrtchyan2022-09-161-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid extra truncate on non WORM file systems, add a new config option `localstorage.unlink_on_truncate`, which defaults to false. The OC\Files\Storage\Local is update to respect that option. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
| * | | | files: remove destination file before copying new content (WORM)Tigran Mkrtchyan2022-09-161-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
| * | | | files: make OC\Files\Storage\Local WORM friendlyTigran Mkrtchyan2022-08-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems run as a Write-Once-Read-Many storages. This makes them impossible to use with NexeCloud, as the file system layers uses `truncate` syscall (through file_put_contents function). As Nextcloud is never updates existing files, removing the old entry and creatint a new one on update will allow NextCoud to update on such file systems. Update Local#fopen and Local#file_put_contents to remote existing file before truncating. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
* | | | | Merge pull request #34020 from nextcloud/logical-opVincent Petry2022-09-161-18/+12
|\ \ \ \ \ | | | | | | | | | | | | Switch logical operators (and|or)
| * | | | | Switch logical operators (and|or)Git'Fellow2022-09-121-18/+12
| | | | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | | | | Merge pull request #33658 from nextcloud/dashboard-api-widgetsVincent Petry2022-09-167-0/+269
|\ \ \ \ \ \ | | | | | | | | | | | | | | Extend dashboard api to allow listing of widgets
| * | | | | | Add since tagsJoas Schilling2022-09-163-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | | | | | move widget options into a Option classRobin Appelman2022-09-155-8/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | add IItemOptionWidget to define some item-related parameters, only ↵Julien Veyssier2022-09-151-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getItemIconsRound() for now Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
| * | | | | | change widget button api to support multiple button typesRobin Appelman2022-09-154-17/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | allow adding button to dashboard api outputRobin Appelman2022-09-153-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | | add dashboard api to list widgetsRobin Appelman2022-09-151-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | l10n: Correct error messagesValdnet2022-09-161-3/+3
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | | | | | | l10n: Correct error messagesValdnet2022-09-161-4/+4
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | | | | | | [tx-robot] updated from transifexNextcloud bot2022-09-162-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | | Merge pull request #34072 from nextcloud/enh/noid/default-enabled-2Vincent Petry2022-09-153-4/+38
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | set defaultEnabled in shipped.json
| * | | | | | | fix phpdocMaxence Lange2022-09-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * | | | | | | set defaultEnabled in shipped.jsonMaxence Lange2022-09-153-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | | | | | Merge pull request #33718 from nextcloud/seekable-http-fseek-endVincent Petry2022-09-151-21/+60
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | fix using FSEEK_END with SeekableHttpStream to get file size
| * | | | | | | fix using FSEEK_END with SeekableHttpStream to get file sizeRobin Appelman2022-09-151-21/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | | | Merge pull request #34048 from nextcloud/feat/add-nodeFilter-to-user_migrationVincent Petry2022-09-151-1/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Add a nodeFilter parameter for IExportDestination::copyFolder
| * | | | | | | | Add a nodeFilter parameter for IExportDestination::copyFolderCôme Chilliet2022-09-131-1/+2
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | | | Merge pull request #34009 from andrey-utkin/safe-config-updateCôme Chilliet2022-09-151-25/+29
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Make config file saving safe against write failures
| * | | | | | | | Make config file saving safe against write failuresAndriy Utkin2022-09-091-25/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of disk space depletion, writing a new version of config fails, leaving the config file empty. This patch improves safety of updates to config.php by saving the new version of the config into a randomly-named temporary file in the same directory, and then renaming it to config.php, which renaming is atomic in POSIX-compliant filesystems and shouldn't involve disk space allocation. If writing the new config version is impossible, the current config remains unchanged. This patch drops the use of file locking as unnecessary. File locking merely established order in which the concurrent independent processes attempted file writing. In the end, the process which was last to update the file "wins" - their changes persist and the changes of previous writers are dropped as there's no conflict detection or change merging mechanism anyway. With the current change, there is still some resulting ordering, and the last writer still wins in the same way. Readers don't need file locking as well, as opening config.php for reading always provides a certain consistent version of the file. Signed-off-by: Andriy Utkin <dev@autkin.net>
* | | | | | | | | Merge pull request #33793 from nextcloud/fix/noid/rtrim-cloud-idMaxence Lange2022-09-151-2/+2
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | rtrim cloudId url earlier
| * | | | | | | | rtrim url earlierMaxence Lange2022-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | | | | | | | | Fix psalm parameter typeJoas Schilling2022-09-151-1/+1
| |_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | | | [tx-robot] updated from transifexNextcloud bot2022-09-1540-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | | | Add accessibility entry in user menuVincent Petry2022-09-141-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | | | | | | Merge pull request #34042 from nextcloud/profile/section-pluginCarl Schwan2022-09-143-0/+56
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | Add api to load additional section in profile page
| * | | | | | | Add api to load additional section in profile pageCarl Schwan2022-09-143-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | | | [tx-robot] updated from transifexNextcloud bot2022-09-132-2/+2
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | | Merge pull request #34019 from nextcloud/fix/quota-typeVincent Petry2022-09-122-4/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix quota type to int
| * | | | | | | Fix quota type to intCarl Schwan2022-09-122-4/+4
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | | Merge pull request #33921 from nextcloud/fix/fix-config-file-emptiedCôme Chilliet2022-09-121-0/+4
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | Do not empty config.php file if reading failed for any reason
| * | | | | | Do not empty config.php file if reading failed for any reasonCôme Chilliet2022-09-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | | [tx-robot] updated from transifexNextcloud bot2022-09-102-0/+2
| |/ / / / / |/| | | | | | | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | | | | Update avatars on updateCarl Schwan2022-09-093-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | Dark theme for guest avatarCarl Schwan2022-09-093-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And better caching policy Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | | | | | Avatar new styleCarl Schwan2022-09-094-32/+65
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>