I'm playing around with the CLI that Bob Swift wrote. I'm having a basic fail with logging in. It looks like it is a problem with special charcters in my password. When I have one with no special charcters, it works, when I have one with special charcters it bombs out with a "Cause: com.atlassian.jira.rpc.exception.RemoteAuthenticationException: Invalid username or password." I've tried multiple of the escape charcters I know of to try to escape the special charcters in the password string. How do I escape the charcter?
On later releases (2.6.0 and later), most cases of special characters in passwords have been resolved although it is still best to avoid if possible. Open an issue with the details and I can investigate. Special characters can also cause problems if they special meaning for the command shell. Double quote strings containing special characters to help.
What about a double-quote inside an argument (for example, adding a comment to an issue, and the comment body contains a double quote)? This actually causes an error. I tried escaping it (in a way the the shell would allow -- basically putting a backslash in front of the quote -- but I still get the error.
What's the right way to handle a double quote inside an arg in the CLI?
Thanks for the quick reply, Bob.
Looking at the error message I was getting, it appeared that the doWork() method that takes a String tries to tokenize it and escape special characters, and while the string I generated worked just fine on the real command-line, it failed in the java client.
Because the tokens it generated looked a bit off, I tried using the doWork() that takes a String (the list of args), and that approach worked just fine. It allowed the JiraClient to do the escaping knowing that the args had already been correctly separated.
Hello Community, Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs