You are viewing limited content. For full access, please sign in.

Question

Question

Repository login MissingResourceException

SDK
asked on October 26, 2015 Show version history

Hi,

We are having an issue with current code (JRA 9.2) when trying to login to a repository name contains a non-ascii character:

Repository name is début

Code:

Session session = new Session();

int port=80;

 

RepositoryRegistration repository = new RepositoryRegistration(servername, ,repoName, port);

session.connect(repository);

session.logIn(username, password); --> exception

 

There is no error when trying to connect to any other repository

Any help is appreciated.

 

Thank you

 

 

0 0

Replies

replied on October 26, 2015

When connecting to a repository with non-ASCII characters in the name, the repository name must be encoded using IDNA (Internationalized Domain Names in Applications). JRA doesn't natively have support for doing this, unlike LFSO and RepositoryAccess. However, you can use an external implementation of IDNA toAscii to encode the repository name before passing it to RepositoryRegistration. Please see http://docs.oracle.com/javase/7/docs/api/java/net/IDN.html#toASCII(java.lang.String)

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.