Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the JIRA-Client CPAN distribution.

Report information
The Basics
Id: 78213
Status: rejected
Priority: 0/
Queue: JIRA-Client

People
Owner: GNUSTAVO [...] cpan.org
Requestors: philippe.pm.martin [...] alcatel-lucent.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: ampersand in password not allowed?
Date: Thu, 5 Jul 2012 10:25:57 +0200
To: "bug-JIRA-Client [...] rt.cpan.org" <bug-JIRA-Client [...] rt.cpan.org>
From: Philippe PM MARTIN <philippe.pm.martin [...] alcatel-lucent.com>
Hello, I do not know if this is a bug or a limitation in JIRA but it seems that /my $auth = $soap->login($user, $pass);/ fails with error /soapenv:Server.userException, com.atlassian.jira.rpc.exception.RemoteAuthenticationException: Invalid username or password./ when there is an ampersand (&) in the password. Can you confirm this? thanks. Note: I use JIRA-Client-0.36 + perl v5.14.2 on Ubuntu 12.04 LTS
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.