Commit Graph

58423 Commits (ca376648870be78ffbc19442e28cd38ebd265b50)
 

Author SHA1 Message Date
Vincent Petry ca37664887 Normalize directory entries in Encoding wrapper
Directory entry file names are now normalized in getMetaData(),
getDirectoryContents() and opendir().

This makes the scanner work properly as it assumes pre-normalized names.

In case the names were not normalized, the scanner will now skip the
entries and display a warning when applicable.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-19 14:51:39 +07:00
Vincent Petry 88b5860e70 Move storage encoding compatibility warning logic
The encoding check for file names is now happening the Scanner, and an
event will be emitted only if the storage doesn't contain the encoding
compatibility wrapper.

The event is listened to by the occ scan command to be able to display a
warning in case of file name mismatches when they have NFD encoding.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-19 14:51:39 +07:00
Vincent Petry 2e79444828 Normalize file name before existence check in scanner
The scanner would not find a NFD-encoded file name in an
existing file list that is normalized.

This normalizes the file name before scanning.

Fixes issues where scanning repeatedly would make NFD files flicker in
and out of existence in the file cache.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-19 14:51:39 +07:00
Nextcloud bot 03ccb6a09f
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-19 02:38:40 +07:00
Nextcloud bot 8a25826610
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-18 02:26:06 +07:00
Vincent Petry 18c190f6a3
Merge pull request #29742 from nextcloud/backport/29695/stable21
[stable21] Fix missing setlocale with php 8
2021-11-17 13:12:11 +07:00
Naoto Kobayashi cbccddcf6e OC_Util::isNonUTF8Locale: fix lint error
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17 09:01:41 +07:00
Naoto Kobayashi b01048bafc OC_Util::isSetLocaleWorking: fix typo
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17 09:01:40 +07:00
Naoto Kobayashi b9b1ef1319 OC_Util: Add fallbacks to check if current locale is UTF8
Using escapeshellcmd to get current locale causes error
if the function is disabled.

Add fallbacks to prevent the error.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17 09:01:40 +07:00
Naoto Kobayashi 7bb43a1e13 Add check whether escapeshellcmd behaves the same as basename
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17 09:01:40 +07:00
Naoto Kobayashi 516cc3ba18 Check whether setlocale works only after setlocale
Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17 09:01:40 +07:00
Naoto Kobayashi e9c6de5c79 Fix missing setlocale with php 8
When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale.
This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8").

Fix it by using escapeshellcmd instead of basename.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2021-11-17 09:01:40 +07:00
Nextcloud bot f5b155266d
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-17 02:45:55 +07:00
Nextcloud bot 2af95cb524
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-16 02:24:39 +07:00
John Molakvoæ 80a804aa41
Merge pull request #29721 from nextcloud/release/21.0.7 2021-11-15 21:02:10 +07:00
John Molakvoæ 6bce0d45fc
Merge pull request #29718 from nextcloud/bump-doctrine-dbal-21 2021-11-15 21:02:01 +07:00
John Molakvoæ 53e408a186
21.0.7
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-11-15 19:29:07 +07:00
Joas Schilling 96c8e0dad3
Apply changes from master's update to 3.1.3
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-15 19:07:11 +07:00
Joas Schilling 8eed4bed72
Bump doctrine/dbal to 3.1.4
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-15 19:01:53 +07:00
Joas Schilling d6d4cbbf9f
Allow NULL as well for limit, not integer only
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-15 19:01:46 +07:00
szaimen 05481edba0
Merge pull request #29707 from nextcloud/backport/29679/stable21
[stable21] don't flash external storage mountpoints during the status check
2021-11-15 16:33:35 +07:00
Louis 89ce52f2e2
Merge pull request #29656 from nextcloud/dependabot/npm_and_yarn/stable21/moment-timezone-0.5.34
Bump moment-timezone from 0.5.33 to 0.5.34
2021-11-15 15:50:59 +07:00
Louis Chemineau 55e1be9a5a Manual compilation
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-11-15 15:21:02 +07:00
szaimen 3adf58f3af don't flash external storage mountpoints during the status check
Signed-off-by: szaimen <szaimen@e.mail.de>
2021-11-15 12:18:15 +07:00
Carl Schwan 3840d0a5dc
Merge pull request #29635 from nextcloud/backport/29484/stable21
[stable21] Use unique combination of hostname/bucket/key for external storages
2021-11-15 12:50:14 +07:00
Nextcloud bot a05f4ed802
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-15 02:24:51 +07:00
Nextcloud bot 232d6dbc40
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-14 02:26:00 +07:00
dependabot[bot] f41a798b2b
Bump moment-timezone from 0.5.33 to 0.5.34
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.33 to 0.5.34.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.33...0.5.34)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-13 23:17:29 +07:00
Nextcloud bot 21fb91110b
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-13 02:26:07 +07:00
Nextcloud bot 90e25b8f41
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-12 02:23:16 +07:00
Arthur Schiwon 5b0854cd30
bump last version digit for rebuild
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-11-11 15:49:58 +07:00
blizzz 5cb7d247e2
Merge pull request #29668 from nextcloud/backport/29664/stable21
[stable21] Fix updating with apps
2021-11-11 15:48:49 +07:00
Joas Schilling fd30500a92 Fix updating with apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-11 13:45:54 +07:00
Nextcloud bot 7bee566e60
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-11 02:23:30 +07:00
blizzz 1b4782b7a2
Merge pull request #29626 from nextcloud/version/21.0.6/final
21.0.6
2021-11-10 20:33:43 +07:00
Julius Härtl 52037996aa
Add migration to move over existing storage ids
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-10 16:52:49 +07:00
Julius Härtl ac1651c86d Use unique combination of hostname/bucket/key for external storages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-10 15:38:30 +07:00
Arthur Schiwon 3f173e4908
21.0.6
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-11-10 14:43:49 +07:00
Nextcloud bot e955240667
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-10 02:24:50 +07:00
Louis ad50457dff
Merge pull request #29599 from nextcloud/backport/29029/stable21
[stable21] Fix HTML entity rendering in file comments sidebar
2021-11-09 15:20:31 +07:00
Christopher Ng 344e850323
Fix HTML entity rendering in file comments sidebar
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-11-09 14:25:28 +07:00
dependabot[bot] e3dd02284b
Merge pull request #29576 from nextcloud/dependabot/npm_and_yarn/stable21/nextcloud/initial-state-1.2.1 2021-11-09 11:11:13 +07:00
Louis Chemineau 99737ea10a Manual compilation
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-11-09 11:30:52 +07:00
dependabot[bot] 023a19e580 Bump @nextcloud/initial-state from 1.2.0 to 1.2.1
Bumps [@nextcloud/initial-state](https://github.com/nextcloud/nextcloud-initial-state) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/nextcloud/nextcloud-initial-state/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-initial-state/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-initial-state/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: "@nextcloud/initial-state"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-09 09:32:16 +07:00
Louis 512a33b98b
Merge pull request #29579 from nextcloud/dependabot/composer/build/integration/stable21/behat/behat-approx-3.10.0
Update behat/behat requirement from ~3.9.0 to ~3.10.0 in /build/integration
2021-11-09 10:29:13 +07:00
Nextcloud bot 75a935283d
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2021-11-09 03:26:43 +07:00
John Molakvoæ bfa8208537
Merge pull request #29596 from nextcloud/backport/29592/stable21 2021-11-08 20:56:23 +07:00
Julien Veyssier 18facb7403 refs #11864 handle empty dir drop in Files UI
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-11-08 17:18:51 +07:00
dependabot[bot] 04b5805a0d Update behat/behat requirement in /build/integration
Updates the requirements on [behat/behat](https://github.com/Behat/Behat) to permit the latest version.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.9.0...v3.10.0)

---
updated-dependencies:
- dependency-name: behat/behat
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 18:09:51 +07:00
Côme Chilliet 5041b727b1
Merge pull request #29520 from nextcloud/backport/29479/stable21
[stable21] Fix images on php 8.0
2021-11-08 11:57:23 +07:00