server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Regression on external files (SMB) if caseSensitive is false

Open danielnachtrub opened this issue 1 year ago • 2 comments
trafficstars

⚠️ This issue respects the following points: ⚠️

Bug description

If external files are mounted via SMB, one of the recent commits introduced a bug that files cannot be accessed and directories cannot be listed anymore.

The affected change is shown here: https://github.com/nextcloud/server/commit/a45e12abc8881b347475877cd07f8fe33bfe8c77#diff-65a0745a50632503b67e22fc4fe11789b6cbd41e3fedd475076fcee2144da0d5R686

Omitting this section returns expected functionality.

Steps to reproduce

  1. Add external storage via SMB
  2. Disable case sensitive
  3. Try to access external storage

Expected behavior

Files and Directories should be listed

Installation method

Community Docker image

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?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

danielnachtrub avatar Feb 17 '24 18:02 danielnachtrub

Don't know if any extra info is needed on this, but I encountered this issue and discovered during traces that the folder queried on the SMB server is actually 2x the subfolder specified in the config.

E.g., if I configure server 1.2.3.4, share MyShare$, subfolder: Projects/Subproject, I see queries happening for folder: "Projects\Subproject\Projects\Subproject"

Censored3 avatar Jun 15 '24 14:06 Censored3

Without more details I can't say for certain, but this may have been addressed by #43349 (which was released in 28.0.3 a few weeks after your report).

joshtrichards avatar Aug 01 '24 20:08 joshtrichards

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

nextcloud-command avatar Sep 27 '24 00:09 nextcloud-command