Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Nextcloud share folder with users not support Chinese character #44764

Closed
5 of 8 tasks
Banqc0621 opened this issue Apr 10, 2024 · 7 comments
Closed
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: files feature: sharing needs info

Comments

@Banqc0621
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Operating system :
OpenEuler21
Web server:
httpd 2.4.43
Database:
mariadb 5.5.68
PHP version:
php7.0.33

I create a chinese folder ,called 舍棉衣外套采购申请单青年美科技,and share with vechie,and it works well .so I login as vechie,first time it works well ,
when I refresh the browser some times,the folder changed as follows :

image
image
image

At present, I am doing the nextcloud data migration test before, and another nextcloud of the same version shows correct, how to solve this phenomenon? The newly built nexcloud will happen.

If a folder name starting with Chinese is shared with another account, the folder name seen by the other account will be changed to (1) (2). But the shared account folder name is normal.

The nextcloud forum found a problem with the same phenomenon, but no solution, link:https://help.nextcloud.com/t/nextcloud19-0-0-share-folder-with-users-not-support-chinese-character/86769

This problem phenomenon is not regular, some display correct, some display abnormal。
459aad9f0a3af25d075f2f75c39bc6a

Steps to reproduce

1.该如何解决
2.该如何解决
3.该如何解决

Expected behavior

The Chinese opening file of the shared folder can be correctly displayed, and the database table oc_share can be correctly displayed in Chinese.

Installation method

Community Manual installation with Archive

Nextcloud Server version

27

Operating system

Other

PHP engine version

Other

Web server

Apache (supported)

Database engine version

MariaDB

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

1

List of activated Apps

1

Nextcloud Signing status

1

Nextcloud Logs

1

Additional info

1

@Banqc0621 Banqc0621 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 10, 2024
@joshtrichards
Copy link
Member

Given that you're running such an old version (v19) it's really hard to say. In my limited testing in v28 I'm not able to reproduce this behavior.

At present, I am doing the nextcloud data migration test before, and another nextcloud of the same version shows correct, how to solve this phenomenon?

Well, what's different about the Servers and configurations? Or maybe the migration itself is introducing an unexpected variable?

Ideas:

  • compare your configurations
  • confirm both servers have the same PHP modules (namely intl)
  • monitor your browser console and browser Network console to try to see what's happening
  • monitor your web server logs to try to see what's happening
  • set Nextcloud loglevel to 0 to try to see what's happening
  • turn on Nextcloud debug mode to try to see what's happening

Unfortunately, this here isn't a general support channel. We can only address bugs in currently supported versions.

For general support you can use the Community Help Forum or make arrangements for Enterprise support (https://nextcloud.com/enterprise).

@Banqc0621
Copy link
Author

Banqc0621 commented Apr 11, 2024

Thank you for your answer. The configurations of the two servers tested were the same.

As for the problem of the shared folder, I re-built the server locally for the test. I found in the database table oc_share that every time files were shared to other users, the display of other users' login to the Web side was correct, and when the interface was refreshed, only the shared files beginning with Chinese characters became (1) (2). The corresponding oc_share table contents are also (1) (2). Would like to ask if I should look up questions from database fields?

The tests that you have just re-built locally do not involve migration. Currently in the forum and search Microsoft search found the same phenomenon of the question, but there is no solution.

@joshtrichards
Copy link
Member

joshtrichards commented Apr 11, 2024

Am I understanding correctly that this problem only occurs on your test server? Or is the original server also exhibiting the same behavior?

How are you migrating?

Currently in the forum and search Microsoft search found the same phenomenon of the question, but there is no solution.

In a maintained version of Nextcloud? I only saw v15 and v19 referenced, which are not maintained.

@Banqc0621
Copy link
Author

For security reasons, the migrated new server uses the same version configuration as the original server httpd, mariadb,php, nextcloud. The original server does not have this problem, but the new server does.

Then I deployed and built nextcloud on my local computer with the same configuration as the migrated new server, and found that this problem occurred when I built nextcloud on my local computer for many times.

@Banqc0621
Copy link
Author

我是否正确理解此问题仅发生在您的测试服务器上?还是原始服务器也表现出相同的行为?

您是如何迁移的?

目前在论坛和搜索Microsoft搜索中发现了同样现象的问题,但目前还没有解决办法。

在Nextcloud的维护版本中?我只看到了引用的 v15 和 v19,它们没有得到维护。

Nextcloud的v15 和 v19,原服务器上搭建的并没有出现共享中文开头文件异常的问题。我想即使是版本的问题,应该也有解决办法,只是目前还没有找到

@susnux
Copy link
Contributor

susnux commented Apr 12, 2024

@Banqc0621 I can not reproduce this issue on any supported Nextcloud version. Please update to at least Nextcloud 27.

@susnux susnux closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
@Banqc0621
Copy link
Author

It could be a problem with the httpd version, here I found a post with the same problem:

https://central.owncloud.org/t/owncloud10-4-1-share-folder-with-users-not-support-chinese-character/26933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: files feature: sharing needs info
Projects
None yet
Development

No branches or pull requests

4 participants