issue tracker -passwords with special characters ! and #
Moderators: Amaradana, TurboPT, TL Developers
issue tracker -passwords with special characters ! and #
This may have been addressed elesewhere but I can't find it
I am trying to connect to JIRA using a user with a ! (exclamation mark) in the password.
e.g:
< Issue Tracker>
<Password>xxx!xxxx</password>
I have tried enclosing the password in single quotes, double quotes, escaping but no success.
I have already tested the actual connection works fine for other users without these characters in the password
Also when I try direct from the command line it works in single quotes e.g
$ https --auth user:'xxx!xxx' company.atlassian.net/api/2/browse/CD-20202
returns the expected html
Can anyone provide insight?
I am trying to connect to JIRA using a user with a ! (exclamation mark) in the password.
e.g:
< Issue Tracker>
<Password>xxx!xxxx</password>
I have tried enclosing the password in single quotes, double quotes, escaping but no success.
I have already tested the actual connection works fine for other users without these characters in the password
Also when I try direct from the command line it works in single quotes e.g
$ https --auth user:'xxx!xxx' company.atlassian.net/api/2/browse/CD-20202
returns the expected html
Can anyone provide insight?
Re: issue tracker -passwords with special characters ! and #
p.s I've tried encoding it as as ! but still get the "something is preventing your connection message" in test execution
Re: issue tracker -passwords with special characters ! and #
Project guidelines requires that issues will be reported on mantis not on forum
Re: issue tracker -passwords with special characters ! and #
just tested with testlink.atlassian.net, user: testlink.jira password: yyy!yyy
issue tracker check on TestLink passed OK
issue tracker check on TestLink passed OK
Re: issue tracker -passwords with special characters ! and #
Could be that your tag name does NOT match case:billos wrote: < Issue Tracker>
<Password>xxx!xxxx</password>
...
Can anyone provide insight?
You might want to check other tags for same situation.<Password>xxx!xxxx</password>
Re: issue tracker -passwords with special characters ! and #
The tags are matched.TurboPT wrote:Could be that your tag name does NOT match case:billos wrote: < Issue Tracker>
<Password>xxx!xxxx</password>
...
Can anyone provide insight?You might want to check other tags for same situation.<Password>xxx!xxxx</password>
it ids definitely the ! that's doing it when I do nothing except use an alternative password it works.
what's the way to escape the !
inside <password>xxx!xxx</password>
I tried single quotes double quotes, /\ // and /'/
at the cli i can simply put the password in single quotes and it works.
https --auth usernamet:'xxx!xxx'' user.atlassian.net/browse/CD-######
I know fman said it worked but I cannot get it to work
Re: issue tracker -passwords with special characters ! and #
...but your cli example has a quoting mismatch??billos wrote: The tags are matched.
it ids definitely the ! that's doing it when I do nothing except use an alternative password it works.
what's the way to escape the !
inside <password>xxx!xxx</password>
I tried single quotes double quotes, /\ // and /'/
at the cli i can simply put the password in single quotes and it works.
https --auth usernamet:'xxx!xxx'' user.atlassian.net/browse/CD-######
I know fman said it worked but I cannot get it to work
There appears to be two single quotes on the right-hand side of the password, likely a typo?billos wrote: https --auth usernamet:'xxx!xxx'' user.atlassian.net/browse/CD-######
Anyway, at http://www.xmlvalidation.com, I put this sample into the validator:
Code: Select all
<list>
<password>xxx!xxx</password>
</list>
...so I'm not sure why your system seems to be having trouble. Perhaps your admin can help?xmlvalidation.com wrote: No errors were found
Bottom line is, that NO escaping is needed in XML for ! and #.
There are only 5 "special characters" to XML: single-quote, double-quote, less-than(<), greater-than(>), and the ampersand(&).
Re: issue tracker -passwords with special characters ! and #
Thanks. yes the quote mismatch is simply a typo here.
I din't think it was neccessary to escape it and as I said earlier I've tried it with the html !
bottom line is I am the admin for this install, of testlink. If it was just me I'd simply change the password, but we use ldap so I have no way of controlling the passwords. Oh well I'll keep plugging away.
Thanks for the help.
I din't think it was neccessary to escape it and as I said earlier I've tried it with the html !
bottom line is I am the admin for this install, of testlink. If it was just me I'd simply change the password, but we use ldap so I have no way of controlling the passwords. Oh well I'll keep plugging away.
Thanks for the help.
Re: issue tracker -passwords with special characters ! and #
IMHO the right solution is to create a SYSTEM ACCOUNT ON JIAT to be used as the User used to manage integration with JIRA e TESTLINK via API.
For this account PASSWORD EXPIRATION NEED TO BE SETTED TO NEVER
My test confirm that issue with password yyy!yyy does not exist
For this account PASSWORD EXPIRATION NEED TO BE SETTED TO NEVER
My test confirm that issue with password yyy!yyy does not exist
Re: issue tracker -passwords with special characters ! and #
we figured it out. The password is not the problem.fman wrote:IMHO the right solution is to create a SYSTEM ACCOUNT ON JIAT to be used as the User used to manage integration with JIRA e TESTLINK via API.
For this account PASSWORD EXPIRATION NEED TO BE SETTED TO NEVER
My test confirm that issue with password yyy!yyy does not exist
So before testlink will try to get the bug info it checks to make sure it's logged in.
It tested the login by running a JIRA rest request "user/search/?username="
which, in both PHP and Python, returns ''
Since that was '', testlink assumed that the JIRA connection was dead and there we are.
So I changed it to request a list of statuses instead.
Re: issue tracker -passwords with special characters ! and #
fman wrote:IMHO the right solution is to create a SYSTEM ACCOUNT ON JIAT to be used as the User used to manage integration with JIRA e TESTLINK via API.
For this account PASSWORD EXPIRATION NEED TO BE SETTED TO NEVER
My test confirm that issue with password yyy!yyy does not exist
yes that's exactly what we were trying to do our user is the "special" user on Jira.
Re: issue tracker -passwords with special characters ! and #
Anyway it's working now you can close this post
Re: issue tracker -passwords with special characters ! and #
would you mind to explain how you have fixed it?
It will be useful for other people in future
It will be useful for other people in future