Commit Graph

58057 Commits

Author SHA1 Message Date
blizzz a2a40c753d
prefer async/await over then
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2021-04-06 19:13:01 +02:00
Arthur Schiwon ca81e958a5
turn download class into a function
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-06 15:04:25 +02:00
Arthur Schiwon 397cecd089
register alias for DownloadManager
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-06 15:04:24 +02:00
Arthur Schiwon bc23d4eb27
(WIP) consolidate download utilities
- move registration and cleanup code to new DownloadManager
- adjust files and files_sharing controllers accordingly
- TODO: js code of files_sharing
- TODO: tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-06 15:04:24 +02:00
Arthur Schiwon 5b326df36c
switch to registration via POST
- download relevant data is sent per POST, a token is received
- download is started by GET and the received token
- solves the disadvantages from XHR-only download
- job to cleanup download tokens

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-06 15:04:24 +02:00
Arthur Schiwon 45552c8c59
Download files via POST request
- also turns old download php script to Controller
- increases number of possible files for lifting length restrictions in GET data

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-04-06 15:04:18 +02:00
Lukas Reschke 4b4971ab52
Merge pull request #24966 from nextcloud/jknockaert-patch-1
avoid fread on directories and unencrypted files
2021-04-06 13:45:10 +02:00
Roeland Jago Douma 2056b76c5f
Merge pull request #26415 from nextcloud/dependabot/npm_and_yarn/jsdom-16.5.2
Bump jsdom from 16.5.1 to 16.5.2
2021-04-06 09:48:43 +02:00
Nextcloud bot e9075b02cd
[tx-robot] updated from transifex 2021-04-06 02:25:33 +00:00
Nextcloud bot bb3ba96b37
[tx-robot] updated from transifex 2021-04-05 02:24:46 +00:00
Nextcloud bot bfd926938f
[tx-robot] updated from transifex 2021-04-04 02:24:48 +00:00
Nextcloud bot 6f55d2e293
[tx-robot] updated from transifex 2021-04-03 02:25:32 +00:00
dependabot-preview[bot] 42987ba66d
Bump jsdom from 16.5.1 to 16.5.2
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.5.1 to 16.5.2.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.5.1...16.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-04-03 01:19:10 +00:00
Nextcloud bot 4bea123c7a
[tx-robot] updated from transifex 2021-04-02 02:26:04 +00:00
Morris Jobke 5fb909faa5
Merge pull request #24055 from nextcloud/bugfix/noid/enfore-no-notnull-for-boolean-to-store-false
Enforce no notnull for boolean to store false
2021-04-01 18:30:26 +02:00
Roeland Jago Douma 507facda8b
Merge pull request #26396 from nextcloud/bugfix/noid/ro-root-template
Get the parent directory before creating a file from a template
2021-04-01 15:11:25 +02:00
Roeland Jago Douma 037411b381
Merge pull request #26403 from nextcloud/fix-26198-csrf
remove leftover debug @NoCSRFRequired introduced with #26198
2021-04-01 15:09:10 +02:00
Robin Appelman c232a40bdf
remove leftover debug @NoCSRFRequired introduced with #26198
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-01 13:51:53 +02:00
Julius Härtl 6fd571461c
Properly handle creating the template directory in a subfolder (fixes #25787)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-01 13:48:21 +02:00
Julius Härtl 37591f05dc
Get the parent directory before creating a file from a template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-01 13:48:21 +02:00
Roeland Jago Douma bd2e6309b5
Merge pull request #25605 from nextcloud/trusted-proxy-warning-localhost
dont show trusted proxy warning when the proxy and remote are both localhost
2021-04-01 13:27:26 +02:00
Roeland Jago Douma 68d3640076
Merge pull request #26390 from nextcloud/techdebt/noid/increase-php-cs-speed
Increase PHP CS speed
2021-04-01 11:18:55 +02:00
Julius Härtl bbc64cfabc
Merge pull request #26394 from nextcloud/feature/noid/updatable-account-data
Allow apps to write/update account data
2021-04-01 08:05:54 +02:00
Nextcloud bot f016cbe914
[tx-robot] updated from transifex 2021-04-01 02:24:40 +00:00
Morris Jobke 6a81477ffe
Merge pull request #25326 from nextcloud/ldap-factory-no-ldap
make ILDAPProviderFactory usable when there is no ldap setup
2021-03-31 21:23:23 +02:00
blizzz ecf287a094
Merge pull request #26260 from hosting-de/feature/ldap-config-json
Add json, yaml output options to ldap:show-config
2021-03-31 21:12:29 +02:00
Robin Appelman 65b78515bd
make ILDAPProviderFactory usable when there is no ldap setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-31 15:23:33 +02:00
Joas Schilling fcedbc85d0
Allow apps to write/update account data
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 15:18:25 +02:00
John Molakvoæ 91ae7f22b0
Merge pull request #24743 from nextcloud/feat/js-licenses 2021-03-31 13:05:53 +02:00
Johannes Leuker 9660a3fa90 Add json, yaml output options to ldap:show-config
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
2021-03-31 12:36:22 +02:00
John Molakvoæ (skjnldsv) 11437223e9
Compile node
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-31 12:34:13 +02:00
John Molakvoæ (skjnldsv) 3e624dc399
Bump js licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-31 12:17:18 +02:00
John Molakvoæ (skjnldsv) 91510d95f1
Add js files to license
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-31 12:17:18 +02:00
Joas Schilling 89cf1cb33a
Merge pull request #26386 from nextcloud/bugfix/noid/also-check-default-phone-region-when-no-country-code
Also check the default phone region when the number has no country code
2021-03-31 10:28:51 +02:00
Joas Schilling f9d4fa2d38
Rename the method to match what it does
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:18 +02:00
Joas Schilling 3696ef5b96
Don't allow Notnull for boolean columns
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:17 +02:00
Joas Schilling 133a6f4fe4
Document the constraints we test against
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:17 +02:00
Joas Schilling c98cab137c
Fix exception messages spacing
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:21:10 +02:00
Joas Schilling c83d9cafb4
Increase PHP CS speed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 10:09:18 +02:00
Joas Schilling 2f99ae1120
Also check the default phone region when the number has no country code
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-31 08:45:32 +02:00
Roeland Jago Douma b67ac4ec9b
Merge pull request #26385 from nextcloud-pr-bot/automated/noid/psalm-baseline-update
[Automated] Update psalm-baseline.xml
2021-03-31 07:27:35 +02:00
Nextcloud-PR-Bot aa7dd1839c Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
2021-03-31 04:12:05 +00:00
Nextcloud bot 855b5fc638
[tx-robot] updated from transifex 2021-03-31 02:24:50 +00:00
kesselb 2212a67fbc
Merge pull request #25961 from nextcloud/enh/events/2fa_provider
Add real events for enabled 2fa providers for users
2021-03-30 23:13:36 +02:00
Roeland Jago Douma f3738eeff7
Merge pull request #25280 from nextcloud/explicit-file-permissions
Set umask before operations that create local files
2021-03-30 21:55:50 +02:00
Roeland Jago Douma 0a6416f84f
Merge pull request #23444 from nextcloud/notify-dry-run
add dry-run option to files_external:notify
2021-03-30 21:46:27 +02:00
Roeland Jago Douma 7c30d1aa2d
Merge pull request #26219 from nextcloud/relative-path-null
getRelativePath can return null
2021-03-30 21:10:05 +02:00
Roeland Jago Douma 06ae9c3dc7
Merge pull request #26372 from nextcloud/fix/noid/calm-down-recipient-not-in-grp
gracefully handle deleteFromSelf when share is already gone
2021-03-30 20:52:17 +02:00
Roeland Jago Douma 071a38a22f
Merge pull request #26292 from nextcloud/smb-directory-readonly
ignore readonly flag for directories
2021-03-30 13:20:11 +02:00
Arthur Schiwon be3ae9a44b
gracefully handle deleteFromSelf when share is already gone
- handling race conditions

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-03-30 12:59:40 +02:00