nextcloud / server

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

Share link doesn’t use domain with german umlaut but punycode domain #6327

Open mael2 opened 7 years ago

mael2 commented 7 years ago

My Nextcloud server has an IDN domain with an “ö” in the URL. it works fine but every time I create a share link, it uses the punycode domain ( https://xn–…-zxa.net/s/…) instead of the correct domain with ö. Because this is very ugly, i change it by hand each time.

The configuration contains both domains as trusted domains, the one with ö is the first one. I tried setting overwrite.cli.url and overwritehost but it doesn’t make a difference.

I’m running: nextcloud 12.0.1~jessie Debian Jessie 8.9 nginx 1.6.2-5+deb8u5 php 5.6.30+dfsg-0+deb8u1

Is there a way to rewrite the share link or configure it correctly?

Thank you very much!

Florian

PS: The nextcloud windows client doesn’t like hostname in my SSL cert which I had to create with a punycode because let’s encrypt doesn’t seem to support IDNs correctly. But it can be ignored easily.

Steps to reproduce

  1. setup nextcloud on a server with a international domain name/IDN
  2. create a share link
  3. the link contains not the IDN but the punycode domain

Expected behaviour

The share links should use the IDN, in my case with an "ö".

Actual behaviour

The share links contain the punycode domain https://xn–…-zxa.net/s/

Server configuration

Operating system: Debian Jessie 8.9

Web server: nginx 1.6.2-5+deb8u5

Database: MariaDB

PHP version: php 5.6.30+dfsg-0+deb8u1

Nextcloud version: nextcloud 12.0.1~jessie

Updated from an older Nextcloud/ownCloud or fresh install: updated from 11

Where did you install Nextcloud from: http://apt.jurisic.org/debian/

Signing status:

Signing status No errors have been found.

List of activated apps:

App list - activity: 2.5.2 - audioplayer: 2.0.2 - bruteforcesettings: 1.0.2 - comments: 1.2.0 - contacts: 1.5.3 - dav: 1.3.0 - federatedfilesharing: 1.2.0 - federation: 1.2.0 - files: 1.7.2 - files_pdfviewer: 1.1.1 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - firstrunwizard: 2.1 - gallery: 17.0.0 - groupfolders: 1.1.0 - keeweb: 0.4.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - news: 11.0.5 - nextcloud_announcements: 1.1 - notes: 2.3.1 - notifications: 2.0.0 - oauth2: 1.0.5 - ocsms: 1.12.0 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - survey_client: 1.0.0 - systemtags: 1.2.0 - tasks: 0.9.5 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - workflowengine: 1.2.0

Nextcloud configuration:

Config report ``` "system": { "instanceid": "ocmu739zt14y", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "\/daten\/www\/nextcloud\/data", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "12.0.1.5", "dbname": "nextcloud", "dbhost": "localhost", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "UTC", "installed": true, "maintenance": false, "loglevel": 2, "overwritehost": "schr\u00f6ck.net" ```

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Chrome

Operating system: Win10

mitdir commented 5 years ago

For sharing, I just converted my page (https://rütmus.ch) link to a bitly link.

skjnldsv commented 4 years ago

Still happening on latest nc versions?

mael2 commented 4 years ago

I just updated to NC 19, the problem still persists

szaimen commented 1 year ago

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

LouBen3010 commented 1 year ago

Hi there, I have the same issue and I'm on 25.0.4 (Nextcloud Hub 3).

My config looks like that:

Unfortunately share links still contain the punycode domain name encoded.

ismvru commented 1 year ago

Hello!

Same issue on 27.0.1 in docker (image nextcloud:27, sha256:d52c634c85062b5c4b68906af72ff9f239f7ce65219d40fd9d7535cf0f8a9fb7)

Config: