summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #22552 from nextcloud/bugfix/noid/opendocument-templatesMorris Jobke2020-09-101-0/+15
|\ | | | | Add opendocument templates to mimetype mappings
| * Update repair step apply new opendocument template mimesJulius Härtl2020-09-041-0/+15
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Don't create a deprecation log in base.phpJoas Schilling2020-09-101-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #22520 from nextcloud/normalize-path-invalid-utf8Roeland Jago Douma2020-09-091-1/+1
|\ \ | | | | | | dont use `false` as cache key for non utf8 path in normalizePath
| * | dont use `false` as cache key for non utf8 path in normalizePathRobin Appelman2020-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | since `json_encode` returns `false` if it's input isn't utf8, all non utf8 paths passed to normalizePath will currently return the same cached result. Fixing this makes working with non utf8 storages a *little* bit more possible for apps Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix reading empty files from objectstorageRoeland Jago Douma2020-09-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #22657 from nextcloud/bugfix/noid/quota-trash-creationMorris Jobke2020-09-091-2/+9
|\ \ \ | | | | | | | | Check if quota should be applied to path when creating directories
| * | | Check if quota should be applied to path when creating directoriesJulius Härtl2020-09-081-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue where the files_trashbin hierarchy of a user could not been created as the mkdir operations were blocked by the quota storage wrapper. Even with 0 quota, users should be able to have a trashbin for external storages. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #22636 from nextcloud/bugfix/noid/initial-stte-cspv3Joas Schilling2020-09-091-14/+15
|\ \ \ \ | | | | | | | | | | Make sure that getConfig is still called for browsers that do not support CSPv3
| * | | | Make sure that getConfig is still called for browsers that do not support CSPv3Julius Härtl2020-09-071-14/+15
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | Merge pull request #22729 from nextcloud/fix/object_storage_permissions_shortcutMorris Jobke2020-09-091-0/+10
|\ \ \ \ \ | | | | | | | | | | | | Run stat less often for objectstorages
| * | | | | Run stat less often for objectstoragesRoeland Jago Douma2020-09-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we want to get the permissions we now do stat at least 5 times for each entry. Which is a bit much. Especially since the permssions are all just in the database already. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | | | Merge pull request #22646 from nextcloud/bugfix/mimetype-mappingRoeland Jago Douma2020-09-081-1/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix detecting text/x-php mimetype and secure mimetype mapping
| * | | | | | Properly add both mimetypes to secure mimetype mappingJulius Härtl2020-09-071-1/+7
| | |/ / / / | |/| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | | Merge pull request #22641 from ↵Roeland Jago Douma2020-09-081-2/+7
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | nextcloud/fix/credentials-store-upgrade-property-undefined Fix undefined class property access after upgrade from 19 to 20
| * | | | | Fix undefined class property access after upgrade from 19 to 20Christoph Wurst2020-09-071-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The serialized data in 19 has one property less and this was not considered in the code. Hence adding a fallback. Moreover I'm changing the deserialization into an array instead of object, as that is the safer option. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | | Merge pull request #22643 from nextcloud/bugfix/noid/fix-installing-on-oracleMorris Jobke2020-09-071-0/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix installing on Oracle
| * | | | | | Warn about adding NotNull columns with nullable defaultJoas Schilling2020-09-071-0/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | Merge pull request #22644 from nextcloud/fix/license-headers-20-2Morris Jobke2020-09-0710-1/+11
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Update license headers for Nextcloud 20 (again)
| * | | | | Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-0710-1/+11
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #22548 from nextcloud/bugfix/noid/improved_status_cleanupRoeland Jago Douma2020-09-071-0/+6
|\ \ \ \ \ | |/ / / / |/| | | | Improved status cleanup
| * | | | Always use IUserStatus constsGeorg Ehrke2020-09-071-0/+6
| |/ / / | | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | | Merge pull request #22589 from ↵blizzz2020-09-071-1/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | nextcloud/bugfix/noid/allow-additional-personal-settings-via-normal-registration Allow additional personal settings via normal registration
| * | | Allow additional personal settings via normal registrationJoas Schilling2020-09-041-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | [tx-robot] updated from transifexNextcloud bot2020-09-072-34/+52
| | | |
* | | | [tx-robot] updated from transifexNextcloud bot2020-09-062-0/+8
| | | |
* | | | Merge pull request #22597 from ↵Roeland Jago Douma2020-09-041-10/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/techdebt/noid/allow-to-di-the-settings-manager Add missing alias for OCP\Settings\IManager and deprecate the old one
| * | | | Add missing alias for OCP\Settings\IManager and deprecate the old oneJoas Schilling2020-09-041-10/+3
| |/ / / | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | Merge pull request #17456 from ↵John Molakvoæ2020-09-042-11/+32
|\ \ \ \ | |/ / / |/| | | | | | | brad2014/feature/brad2014/12391-improve-imip-mail-message-take-2
| * | | Minor cleanup: php-cs-fixer, tests, interface consistencyBrad Rubenstein2020-09-022-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IMipPlugin.php Removed blank lines to make php-cs-fixer happy. Minor cleanup: bugs found by Psalm static checker IEMailTemplate: The public interface to addBodyListItem also needs to include the new plainIndent parameter. IMipPlugin: Fixes an undefined variable for events that do not have DTEND. Also use explicit string conversion for parameters and properties in several places. The new email template adds an additional blank line before "button" links in plain text, so the tests were fixed to include that additional blank line. Signed-off-by: Brad Rubenstein <brad@wbr.tech>
| * | | iMIP email improvements (take 2)brad20142020-08-201-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR is a replacement for PR #17195. It is intended to be simpler to review and approve, with fewer changes, some disabled by default. It addresses issues #12391 and #13555, with the following changes: - The plainText of iMIP emails has been upgraded as described in issue #12391. The HTML design style has not been changed. - Some of the HTML and plainText content has been rearranged (simplified header language, moving the event title to from text body to the first item in the bullet list, spelling corrections, moving the description to the end of the list), per issue #12391. - The interface for EMailTemplate has been extended: addBodyListItem now takes an optional `plainIndent` parameter. Existing callers see no change. Where new calls set the new parameter >0, the list item label (metaInfo) is put in column 1, and the value is indented into column 2 (properly accounting for multiple lines, if any). - An optional dav config setting has been added, `invitation_list_attendees`. It defaults to 'no', leaving emails unchanged. If set by the site admin to 'yes', then iMIP emails include, for the organizer and each attendee, their name, email, and a ✔︎ if they have accepted the invitation. - Minor refactoring. Notes: - The labels for organizers and attendees list items are new, and require translation/localization. - Dav config settings are documented in the code, but not in the Administrator's Guide. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
* | | | Merge pull request #22550 from ↵Joas Schilling2020-09-041-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | nextcloud/bugfix/13556/use-correct-root-when-compiling-scss Use the correct root to determinate the webroot for the resource
| * | | | Use the correct root to determinate the webroot for the resourceJoas Schilling2020-09-021-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | 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>
* | | | [tx-robot] updated from transifexNextcloud bot2020-09-042-4/+4
| | | |
* | | | Fix app password updating out of boundsRoeland Jago Douma2020-09-035-0/+60
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #22423 from nextcloud/bugfix/noid/direct-editing-encryptionRoeland Jago Douma2020-09-012-6/+37
|\ \ \ | | | | | | | | Do not expose direct editing if no master key is available
| * | | Do not expose direct editing if no master key is availableJulius Härtl2020-09-012-6/+37
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Only disable zip64 if the size is knownRoeland Jago Douma2020-09-011-1/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | Else we might run into the issue that for an external storage where the size is not known yet we do not use zip64. Which then of course fails on large zip files. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #22116 from ↵Roeland Jago Douma2020-09-012-0/+12
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/transfer-ownership-share-root Fix share transfer of single files and on the transfered node
| * | | Transfer shares of the transferred root nodeJulius Härtl2020-08-312-0/+12
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #16632 from nextcloud/bugfix/external-reshareRoeland Jago Douma2020-09-011-5/+1
|\ \ \ \ | | | | | | | | | | Set proper root path for single file shares originating from other storages
| * | | | trim slashesRobin Appelman2020-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | Set proper root path for single file shares originating from other storagesJulius Härtl2020-08-281-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | | Merge pull request #22514 from nextcloud/fix/s3/only_delete_new_failedRoeland Jago Douma2020-08-311-7/+27
|\ \ \ \ \ | |_|_|_|/ |/| | | | Fix S3 error handling
| * | | | Only update the filecache entry once the file has been written to S3Roeland Jago Douma2020-08-311-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we already update before we have no way to revert if the upload fails. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | | | Don't lose filecache entry on s3 overwrite errorRoeland Jago Douma2020-08-311-5/+16
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | If the object store errors we should not always delete the filecache entry. As this might lead to people losing access to their files. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | set the mount id before calling storage wrapperRobin Appelman2020-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | this allows the storage wrapper to use the mount id for it's own logic Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #22472 from nextcloud/fix/contacts-interaction-blob-postgresblizzz2020-08-312-1/+8
|\ \ \ \ | |/ / / |/| | | Fix writing BLOBs to postgres with recent contacts interaction
| * | | Fix writing BLOBs to postgres with recent contacts interactionChristoph Wurst2020-08-282-1/+8
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Merge pull request #22476 from nextcloud/setting-sections-uniqueRoeland Jago Douma2020-08-301-2/+2
|\ \ \ \ | | | | | | | | | | ignore duplicate setting sections