nextcloud / nextcloud/ios

Connection Problem with domain containing non ASCII characters

Open
#1,609 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce
  1. host nextcloud on a domain containing unicode but non ASCII character like "ä" for example
  2. try to connect with the ios app (browser works btw)
  3. Error 400
Expected behaviour

It should automatically convert the IDN to puny code and connect. This is working on Windows and Android.

Actual behaviour

It does not connect. If the domain is entered in punycode notation it works.

Reasoning or why should it be changed/implemented?

This is working on Windows and Android. IDNs are more than a decode old so it should be suppoorted by now.

Environment data

iOS version: 14

Nextcloud iOS app version: freshly installed

Server operating system: Ubuntu 20 LTS

Web server: Apache

Database: mariaDB

PHP version: 7.4

Nextcloud version: 21.0.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the connection failure in the iOS app with a Unicode domain, then trace the app's connection and URL handling. Done means an IDN is converted to punycode automatically and the app connects successfully, matching the existing Windows and Android behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.