nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.58k stars 4.08k forks source link

[Bug]: Filenames "2024.10", "2025.10", "2026.10" etc. turned into "2024.1", "2025.1", "2026.1" #47506

Open housestationlive opened 3 months ago

housestationlive commented 3 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

filenames "2024.10", "2025.10", "2026.10" etc turned into "2024.1", "2025.1", "2026.1"

when i have folders "2024.01" and "2024.10" there are "2024.01" and "2024.1" displayed instead, which is very confusing.

when i check in group folder, names are correct

on the top of the screen on the 3rd photo, the filename is also incorrectly spelled.

image image image

Steps to reproduce

  1. create filenames through group folders
  2. create subfolers inside it "season 01/2024.10/week 42"
  3. associate gorup users to theses folders
  4. enable the app "create virtual everyone" group

Expected behavior

having the exact same name displayed on file browser than the one created in group folders.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

housestationlive commented 3 months ago

please don't ask me to rename it cause i spend 3 days creating thousand folders and associations, and the issue is reproducing in a lot of different locations, as you can guess. also the "virtual everyone" app is necessary to the way i built the database with that app in mind. indeed, since i have thousand groups, i can't add individually each one in every general folder.

solracsf commented 3 months ago

Are files/folders renamed (on disk) or only displayed wrongly on the Web UI ?

housestationlive commented 3 months ago

how i can tell that? i don't have access to the database. on the group folder the name is correct, and on the third picture it seems that the folder is named differently.

maybe just a displaying issue where the "zero" as the very last character isn't displayed. would make more sense. maybe because of the "." it was seen as a file extension or something causing that issue.

i created folders directly through "group folder" menu, then i never renamed them. the path of the content inside theses folders includes the 0, as the screen captures shows.

housestationlive commented 3 months ago

when i download the folder the zero is displayed in the folder downloaded, so i gues it's already a good sign!

image

solracsf commented 3 months ago

how i can tell that?

Well, you access the data folder on the server and you can observe REAL file names :)

when i download the folder the zero is displayed in the folder downloaded, so i gues it's already a good sign!

Yep. So don't worry, this seems a display name bug only that will likewise be fixed asap.

solracsf commented 3 months ago

May i ask if this is a Group Folder bug only? Folders created outside Group Folders have the same issue?

susnux commented 3 months ago

It is a parsing issue of a library we use, they have a XML parser that tries to guess the type -> "2023.01" looks like a number -> 2023.1

We cast that value, but then the trailing 0 is already lost.

susnux commented 3 months ago

Upstream PR: https://github.com/perry-mitchell/webdav-client/pull/384

housestationlive commented 3 months ago

it happens outside of a group folder

image

solracsf commented 3 months ago

See previous comments by @susnux this comes from a 3rd party library, a fix is on its way 👍

housestationlive commented 3 months ago

great community, really appreciate. i took a 40go vps and just noticed that my video library was about 400go :/

2yzal commented 1 month ago

Are files/folders renamed (on disk) or only displayed wrongly on the Web UI ?

on-disk names are correct