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

IDN mod_http_upload failure #3519

Open
Millesimus opened this issue Feb 7, 2021 · 0 comments
Open

IDN mod_http_upload failure #3519

Millesimus opened this issue Feb 7, 2021 · 0 comments

Comments

@Millesimus
Copy link

Environment

  • ejabberd version: 21.01
  • Erlang version: 9.3.3.6

Bug description

I have an IDN domain (with an umlaut) as host in my ejabberd config. Certificates are issued for the domain in punycode. File upload via mod_http_upload from Conversations 2.9.6 to the internal fileserver would fail with standard configuration, so here is what I tried:

Working

1

host: punycode
put_url: @host@
comment: Works, but nobody wants JIDs in punycode.

2

host: unicode
put_url: punycode

Failing

1

host: unicode
put_url: @host@

2

host: unicode
put_url: unicode

In the failing cases, ejabberd logs that it cannot handle a put request to the host (written in punycode). From the discussion in the Conversations MUC i assume that while Conversations sends http headers (correctly) with punycode, ejabberd should transform them to unicode when interpreting them as host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant