Skip to content

Questionable Test #3

@sco0ter

Description

@sco0ter

Original report by Anonymous.


Are you sure the testUnicodeDomain test is valid?

https://bitbucket.org/sco0ter/precis/src/40503f4cf4fca40c5844c1a75b9f81a42495c637/src/test/java/rocks/xmpp/precis/IDNProfileTest.java#lines-23:27

When I test the domain name in IDNA 2008 in an Erlang implementation, I get an error:

Eshell V10.3.1  (abort with ^G)
1> idna:encode("x{10D}echy.example").
** exception exit: {bad_label,{alabel,"The label \"x{10D}echy\"  is not a valid A-label: ulabel error={bad_label,\n                                                              {context,\n                                                               \"Codepoint 123 not allowed ('DISALLOWED') at posion 1 in \\\"x{10d}echy\\\"\"}}"}}
     in function  idna:alabel/1 (/Users/varnerac/xmpp_light/_build/default/lib/idna/src/idna.erl, line 277)
     in call from idna:encode_1/2 (/Users/varnerac/xmpp_light/_build/default/lib/idna/src/idna.erl, line 145)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingminor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions