On Thu Jul 05 04:26:22 2012, philippe.pm.martin@alcatel-lucent.com
wrote:
Show quoted text>
> Hello,
>
> I do not know if this is a bug or a limitation in JIRA but it seems
that
Show quoted text> /my $auth = $soap->login($user, $pass);/
> fails with error
> /soapenv:Server.userException,
> com.atlassian.jira.rpc.exception.RemoteAuthenticationException:
Invalid
Show quoted text> username or password./
> when there is an ampersand (&) in the password.
>
> Can you confirm this?
Hi Philippe.
I couldn't reproduce the problem. I'm using JIRA::Client 0.37, Perl
5.14.2, Ubuntu 12.04, and JIRA v4.4#649-r158309.
I created a local user in JIRA (not an LDAP user) called jiraclient and
set its password to "123&456". Then I verified that I could login via
the web interface.
Then I run the following script, which run succesfully:
------
#!/usr/bin/env perl
use 5.010;
use utf8;
use warnings;
use JIRA::Client;
my $jira = JIRA::Client->new('
https://jira.AT.MY.DOMAIN/', 'jiraclient',
'123&456');
say "ok";
exit 0;
------
Can you succesfully login via the web interface?
Have you double-checked if the password is being passed as you intend to
JIRA::Client::new? Perhaps it's being evaluated before and being
mangled. I'd run it under the debugger and check the value at the point
of calling.
It could be due to our diverging versions of JIRA, perhaps.
--
Gustavo.