Côme Chilliet
b5b080a219
Add missing copyright headers in migration steps
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:40:38 +01:00
Côme Chilliet
e7a769158d
Use clearer names for variables
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:40:15 +01:00
Côme Chilliet
9e33d51c44
Add an index for directory_uuid as well
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:40:08 +01:00
Côme Chilliet
fbed00bab4
Make sure that hash function returns a string
...
The documentation says it can return false, and even if that is highly
unlikely for sha256, better safe than sorry.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:39:55 +01:00
Côme Chilliet
98476a9d5d
Add the columns and alter the index in Version1010Date20200630192842
...
This is to ensure new installations do not need to go through migration
history.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:39:45 +01:00
Côme Chilliet
2336a188df
Fixes in migration step
...
We cannot set ldap_dn_hash column as notnull because it is empty for
existing users before postSchemaChange is called
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:39:33 +01:00
Côme Chilliet
a0db2a248c
Put back length check to have a clear error
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:39:23 +01:00
Côme Chilliet
189852b549
Fixed migration step for user_ldap
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:39:12 +01:00
Joas Schilling
54007f9993
Fix variable names
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-13 09:39:04 +01:00
Côme Chilliet
514b34084a
Change column names to ldap_dn and ldap_dn_hash and add migration
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:38:54 +01:00
Côme Chilliet
fe3203a66e
Support LDAP dns longer than 255 characters
...
Adds an ldap_full_dn column to store the dn, and only store a sha256
hash in the ldap_dn which is shorter and can be indexed without
trouble.
Migration still needs to be implemented.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-13 09:38:43 +01:00
MichaIng
86c0b22e97
Merge pull request #30214 from nextcloud/dependabot/npm_and_yarn/stable23/dompurify-2.3.4
...
Bump dompurify from 2.3.3 to 2.3.4
2021-12-11 21:50:21 +01:00
dependabot[bot]
2339d5d543
Bump dompurify from 2.3.3 to 2.3.4
...
Bumps [dompurify](https://github.com/cure53/DOMPurify ) from 2.3.3 to 2.3.4.
- [Release notes](https://github.com/cure53/DOMPurify/releases )
- [Commits](https://github.com/cure53/DOMPurify/compare/2.3.3...2.3.4 )
---
updated-dependencies:
- dependency-name: dompurify
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-12-11 16:31:23 +00:00
MichaIng
837d589cb4
Merge pull request #30215 from nextcloud/dependabot/npm_and_yarn/stable23/core-js-3.19.3
...
Bump core-js from 3.19.2 to 3.19.3
2021-12-11 16:04:39 +01:00
dependabot[bot]
7e2414c73a
Bump core-js from 3.19.2 to 3.19.3
...
Bumps [core-js](https://github.com/zloirock/core-js ) from 3.19.2 to 3.19.3.
- [Release notes](https://github.com/zloirock/core-js/releases )
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zloirock/core-js/compare/v3.19.2...v3.19.3 )
---
updated-dependencies:
- dependency-name: core-js
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-12-11 12:59:40 +00:00
MichaIng
37b74dab89
Merge pull request #30213 from nextcloud/dependabot/composer/build/integration/stable23/sabre/dav-4.2.3
...
Update sabre/dav requirement from 4.2.1 to 4.2.3 in /build/integration
2021-12-11 13:50:58 +01:00
dependabot[bot]
f35d000c7f
Update sabre/dav requirement from 4.2.1 to 4.2.3 in /build/integration
...
Updates the requirements on [sabre/dav](https://github.com/sabre-io/dav ) to permit the latest version.
- [Release notes](https://github.com/sabre-io/dav/releases )
- [Changelog](https://github.com/sabre-io/dav/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sabre-io/dav/compare/4.2.1...4.2.3 )
---
updated-dependencies:
- dependency-name: sabre/dav
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-11 07:04:10 +00:00
dependabot[bot]
fcb2bf130d
Merge pull request #30212 from nextcloud/dependabot/composer/build/integration/stable23/guzzlehttp/guzzle-6.5.5
2021-12-11 07:02:56 +00:00
dependabot[bot]
4a1c576325
Update guzzlehttp/guzzle requirement in /build/integration
...
Updates the requirements on [guzzlehttp/guzzle](https://github.com/guzzle/guzzle ) to permit the latest version.
- [Release notes](https://github.com/guzzle/guzzle/releases )
- [Changelog](https://github.com/guzzle/guzzle/blob/6.5.5/CHANGELOG.md )
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.2...6.5.5 )
---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-11 03:35:25 +00:00
Pytal
7d80036bed
Merge pull request #30190 from nextcloud/backport/30157/stable23
2021-12-10 17:30:02 -08:00
Vincent Petry
de8b0275a0
Merge pull request #30187 from nextcloud/backport/30164/stable23
...
[stable23] Use correct icon for dir-external-root
2021-12-10 12:02:36 +01:00
John Molakvoæ
32eed324a1
Fix first day locale
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-12-10 10:35:05 +00:00
John Molakvoæ
ac5385101c
Properly format sharing datepicker locale
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-10 09:47:35 +00:00
Vincent Petry
1a032ce6f1
Use correct icon for dir-external-root
...
When an external storage mount is shared with circles, it triggers the
share icon state to be rerendered. The picking of the mime type icon
would use the regular file icon because there is no actual icon for
"dir-external-root" that is shared.
This fixes the logic to use the "folder-external" icon in such
scenarios.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-12-10 09:29:32 +00:00
Vincent Petry
1fc27e771c
Merge pull request #30180 from nextcloud/backport/30160/stable23
...
[stable23] Check resource before closing in encryption wrapper
2021-12-10 08:55:50 +01:00
John Molakvoæ
497fab8fe6
Merge pull request #30175 from nextcloud/backport/30168/stable23
2021-12-10 08:46:52 +01:00
John Molakvoæ
8e1b2cd59a
Merge pull request #30176 from nextcloud/backport/29996/stable23
2021-12-10 07:57:42 +01:00
Vincent Petry
1291abc130
Check resource before closing in encryption wrapper
...
In case of error there is no guarantee that $source or $target is set or
is a resource when handling an error.
Without this fix, there's a risk that fclose will fail and the actual
exception will not be thrown, making it impossible to find out about the
root cause.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-12-10 00:03:08 +00:00
Pytal
9135b177be
Update core/Migrations/Version23000Date20211203110726.php
...
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-09 23:07:30 +00:00
Christopher Ng
3600b84e6e
Fix relation "user_id" already exists migration error
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-12-09 23:07:30 +00:00
John Molakvoæ
72422ccb10
Allow to delete non-migrated previews instead of moving them
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-09 22:59:38 +00:00
John Molakvoæ
28992a403e
Merge pull request #30144 from nextcloud/backport/29968/stable23
2021-12-09 10:33:20 +01:00
Daniel Calviño Sánchez
30733d020d
Remove no longer needed CSS rules
...
Since Nextcloud 22 the "#new-user" rules had no effect, as the DOM
structure changed to show a dialog rather than adding a row on top of
the list when adding new users.
Similarly, the z-index was no longer needed, as there will be no
"new-user" row that could overlap. Moreover, the z-index was set even
higher (100) in another rule still active.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-12-09 06:58:07 +01:00
Daniel Calviño Sánchez
7b53eb4066
Fix input for groups validation in new user form
...
The hidden input used for form validation was not actually hidden since
Nextcloud 22, as the DOM structure changed to show a dialog rather than
adding a row on top of the list when adding new users, so the CSS rules
no longer matched.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-12-09 06:58:07 +01:00
MichaIng
c79b3be1aa
Merge pull request #30151 from nextcloud/backport/30141/stable23
...
[stable23] Reload page instead of file list when getting 401 authentification error
2021-12-08 14:32:00 +01:00
Carl Schwan
9a81b75b38
Reload page on 401 since there is an authentification problem
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-08 11:39:57 +00:00
Carl Schwan
ad44722397
Stop reloading file list when getting 401 error on root dir
...
When reaching the root dir, instead of reloading the file list we reload
the page completely. This trigger a redirection to the login page automatically
with the correct ?redirect_url= in thr url.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-08 11:39:57 +00:00
Julius Härtl
c311f43c1f
Merge pull request #30136 from nextcloud/backport/30134/stable23
2021-12-08 09:07:24 +01:00
Julien Veyssier
fb0e22a3c4
do not trigger events when setting active view in gotoplugin
...
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-12-07 14:38:22 +00:00
John Molakvoæ
e0b61fb449
Merge pull request #30132 from nextcloud/backport/30114/stable23
2021-12-07 13:55:54 +01:00
John Molakvoæ
36bacaa7af
Prevent writing invalid mtime
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-07 11:16:29 +00:00
John Molakvoæ
778d1a1793
Merge pull request #30009 from nextcloud/backport/29905/stable23
2021-12-07 09:27:50 +01:00
marco
07931d9bb6
Only add the vue exeption to actual button elements
...
Signed-off-by: marco <marcoambrosini@pm.me>
2021-12-07 01:13:21 +01:00
Côme Chilliet
c630c8ccec
Merge pull request #30115 from nextcloud/backport/30040/stable23
...
[stable23] Avoid calling image* methods on boolean
2021-12-06 16:58:23 +01:00
Louis
b2967923d2
Merge pull request #30106 from nextcloud/backport/30104/stable23
...
[stable23] Strengthify is now in the Nextcloud org
2021-12-06 15:58:28 +01:00
Côme Chilliet
f889b251b1
Avoid assignment in if clause
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-06 14:22:05 +00:00
Côme Chilliet
3fe20bfbbb
Fix typing problems in OC_Image
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-06 14:22:05 +00:00
Côme Chilliet
11b51ddbbe
Avoid calling image* methods on boolean
...
This avoids fatal errors on PHP>=8, and warnings on older versions.
Log should also be clearer.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-12-06 14:22:05 +00:00
Christoph Wurst
f88f57612b
Merge pull request #30025 from nextcloud/backport/30012/stable23
...
[stable23] Only check the twofactor state once per request
2021-12-06 14:49:45 +01:00
Joas Schilling
7b88878895
Strengthify is now in the Nextcloud org
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-06 08:59:57 +00:00