I was trying to test using the REST API, I got a response telling me I needed to complete a captcha. I logged out and tried to log in and saw this image:
Unfortunately the CAPTCHA isn't displaying:
I see the server is rturning a 500 for the captcha request
Error creating bean with name 'imageCaptchaServicePrototype' defined in class path resource [stash-context.xml]: Cannot create inner bean 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#4ef54ec2' of type [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#4ef54ec2' defined in class path resource [stash-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine]: Constructor threw exception; nested exception is java.lang.ArrayIndexOutOfBoundsException: 0
I can't reset password, because:
Hi, and welcome to the community!
This sounds like a bug to me, something we should fix! To help us identify the cause, could you please provide these details:
To help you with regaining access to your Bitbucket instance, please have a look at this article: How to identify and reset all users blocked by CAPTCHA. In particular the cURL command mentioned is useful:
curl --user <user_name>:<password> -X DELETE http://baseurl:7990/rest/api/1.0/admin/users/captcha?name=<user_name>
Should you want to reset CAPTCHA through the database: please read the article thoroughly, and make sure you create a backup!
I hope this helps - I'm looking forward to hearing from you.
I am sorry I did not get back to this thread earlier to say we were able to fix it following this KB guide: https://confluence.atlassian.com/bitbucketserverkb/captcha-image-doesn-t-render-779171210.html
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
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