It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Xray-Maven integration- error as ' Status:403 Response:Basic auth with password is not allowed

spchoudhury I'm New Here Tuesday

Hi,

I am using XRay-Maven plugin for running my TestNG tests from a maven project.

https://confluence.xpand-it.com/display/public/XRAY/Integration+with+Maven

Upon running the command to just upload(or,build,test,upload) surefire reports ,I am getting an error that says "Execution default-cli of goal com.xpandit.xray:xray-maven-plugin:1.1.0:xray failed: Abort Execution!: Unable to confirm Result of the upload..... Upload Failed! Status:403 Response:Basic auth with password is not allowed on this instance".

Has anyone experienced this error before?(screenshot is attached)Upload-error.PNG

1 answer

0 votes
Andy Heinzer Atlassian Team Wednesday

Hi,

I see that you're attempting to use xray for running some tests, but you appear to be getting an error in regards basic auth.   This error message is expected if your Jira site is on the Atlassian Cloud platform. 

Atlassian deprecated the use of passwords in basic auth in Atlassian Cloud sites more than 6 months ago.  More details in Deprecation notice - Basic authentication with passwords and cookie-based authentication.  Perhaps the guide you are referencing here is specifically designed to utilizing Jira Server, which does not have this same limitation out of the box.  

Are you using a Jira Cloud site here?  If you were, it would have a domain such as example.atlassian.net or example.jira.com (legacy).

If you are then you might be able to get around this by generating an API Token, and using that instead of the password here. 

If you are not using a Jira Cloud site, and you are using Jira Server site, then it seems that your specific Jira Server site has disabled basic auth.  This could happen in situations where Jira has been integrated with an external auth server, like an SSO or OKTA.  In cases like that, you won't be able to perform basic auth calls to that Jira server in its existing configuration.  Perhaps you could reach out to the Jira admin to see if there is some alternative means to authenticate there or some means to allow basic authentication for these calls.

I hope this helps.

Andy

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Looking for a light weight Test Management Tool? What are the things you should be considering?

Let’s face it. Test management tools today do achieve much more than just organization of your test assets. But when the test management tools seem to offer every feature under the sun, it becomes co...

375 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you