Hi
So we have "bitbucket server" and when we go to "edit hosting account" and select "bitbucket server", basic auth and a username that is an email address.
We get :
-----------------------------
Authentication Failed
Failed to check login for user [foo@corp.com]: The URL "https://<our bitbucket server>/rest/api/1.0/users/foo%40corp.com" returned code "NotFound".
user foo@corp.com does not exist.
------------------------------
I think it's because the url it's generating is wrong:
If I go to the browser and enter:
https://<our bitbucket server>/rest/api/1.0/users/foo_corp.com/
it works fine, but if I enter the url sourcetree tries, it fails with the same error
https://<our bitbucket server>/rest/api/1.0/users/foo%40corp.com/
Question:
is this a bug (know or not), or are we configuring something wrong?
Thanks
Angus
Hello again! This issue will be fixed in the next release. For now, you might be able to work around this issue by replacing the "@" in your username with a "_"
I created a ticket there: https://jira.atlassian.com/browse/SRCTREEWIN-8872
Looks like it will be fixed soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SourceTree 2.6.10
Bitbucket 5.12.0
It is not possible to use user@domain.com-type logins. "@" leads to UserNotFound, "_" leads to Unauthorized exceptions.
Fix is really needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With the latest Bitbucket Server, it is not possible to use "email@domain.com"-type logins in SourceTree. @ leads to "UserNotFound", _ leads to Unauthorized exceptions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having exactly the same issue - we use Active Directory logins for our Bitbucket server and we use UserPrincipalName which is the email. Login fails because it's interpreting the "@" symbol incorrectly when trying to connect to the server. When I use my local Bitbucket admin login, it works fine. Please fix this ASAP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! Could you try logging in without the "@corp.com" part of your username when logging in? I think that's probably causing the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the suggestion, when I tried that I got the following error (assuming a username of "foo"):
Failed to check login for user [foo]: The URL "https://<our bitbucket server>/rest/api/1.0/users/foo" returned code "NotFound".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Angus,
Thanks for the report! I'll pass it along to the Windows folks to check out for the next update.
Cheers,
Brian Ganninger
Product Manager, Sourcetree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.