youngmon/atlassian-qna huggingface dataset:
Webhook issues
Asked by Ravi_Ramachandra:

While creating a webhook for connecting to Jenkins I am getting the following issues:

403 View details

Response details {#toc-hId--497384237}
--------------------------------------

##### HTTP status: {#toc-hId-894241815}

403

Headers {#toc-hId-182674133}
----------------------------

```
Cache-Control: must-revalidate,no-cache,no-storeServer: Jetty(10.0.11)X-Content-Type-Options: nosniffContent-Length: 575Date: Wed, 11 Jan 2023 09:08:26 GMTVia: 1.1 localhost (Apache-HttpClient/4.5.13 (cache))Content-Type: text/html; charset=ISO-8859-1
```

Body {#toc-hId--1624780330}
---------------------------

```
<html><head><meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/><title>Error 403 No valid crumb was included in the request</title></head><body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2><table><tr><th>URI:</th><td>//bitbucket-scmsource-hook//notify//</td></tr><tr><th>STATUS:</th><td>403</td></tr><tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr><tr><th>SERVLET:</th><td>Stapler</td></tr></table><hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 10.0.11</a><hr/></body></html>
```


Answers:
author: Anees Muhammed
body: Hey [Ravi_Ramachandra](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5118527),

Good day!

Could you please install the plugin **Build Authorization Token Root** and rewrite the Webhook URL? It should work with the new URL.  

<https://plugins.jenkins.io/build-token-root/>


author: Patrik S
body: Hey [@Ravi_Ramachandra](/t5/user/viewprofilepage/user-id/5118527) ,

Welcome to Atlassian Community!

Based on the error

```
No valid crumb was included in the request
```

I think the issue might be caused by a configuration on your Jenkins Instance. I believe you should have the flag **Prevent Cross-Site Request Forgery exploits** marked on your Jenkins configurations.

This particular setting will make Jenkins expect any webhook request to include a crumb header, like the below example :  

```
--header "Jenkins-Crumb: <crumb>"
```

However, Bitbucket Cloud does not include that crumb header and we are not able to add these with our webhooks payloads, which makes the request fails with a 403.

In this case, if you are able to disable this setting on your Jenkins configuration, the webhooks should be delivered successfully. I would suggest taking a look at this thread with instructions on how to disable this setting in Jenkins :  
* <https://stackoverflow.com/a/44732702>

Hope that helps! Let me know if you have any questions.

Patrik S


Tags: bitbucket-cloud

cloud
Remove Bitbucket Cloud account
Asked by Gert Goos:

Please remove my Bitbucket Cloud account (\<redacted\>), not my Atlassian Cloud Account !


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Gert Goos](/t5/user/viewprofilepage/user-id/790950) ,

this is a community! In order to raise that type of request you need to reach the Atlassian support team through <https://support.atlassian.com/contact/>

Fabio


Tags: bitbucket-cloud

cloud
Bitbucket Pipeline <> Hashicorp Vault - Support to Access All Vault Paths
Asked by Vinoth Kumar Karuppuchamy:

Hi, We see that there is only kv secret engine support to read static secrets from hashicorp vault. But for our workflow, we are looking to access our application's - role id and secret id from the approle authentication backend. Is there something in the works to integrate bitbucket pipelines with other vault secret backends and auth backends and allow it to read and write from any vault path?

For e.g.

vault read auth/approle/role/test-app/role-id

vault write -wrap-ttl=30m -f auth/approle/role/test-app/secret-id

We cannot utilize most of the functionalities from the hashicorp vault with bitbucket pipelines.


Answers:
author: Patrik S
body: Hello [@Vinoth Kumar Karuppuchamy](/t5/user/viewprofilepage/user-id/5118307) ,

Welcome to Atlassian Community!

I'm assuming you are talking about the pipe [atlassian/vault-secrets](https://bitbucket.org/product/features/pipelines/integrations?search=vault&p=atlassian/vault-secrets) that can be used to fetch secrets from a HashiCorp vault. According to that pipe's documentation it currently only supports ***kv*** secret engine vault type.

I understand you would like to have access to other types of vault backends that are not currently included in this pipe.

After some research, I found that Hashcorp offers a command-line interface (CLI) that leverages a great part of their API functionalities, and might also offer the feature you are looking for.

You could try [installing the Vault's CLI](https://developer.hashicorp.com/vault/docs/install) into the docker image you use in your build, and then configure the Vault CLI according to Vault's documentation. For a full list of commands available in Vault's CLI, I would suggest referring to [Vault Commands (CLI).](https://developer.hashicorp.com/vault/docs/commands)

Let me know in case you have any questions.

Thank you, [@Vinoth Kumar Karuppuchamy](/t5/user/viewprofilepage/user-id/5118307) .

Patrik S


Tags: bitbucket-cloud

cloud
??????????????????????????????????????
Asked by ????:

??????

???????????????

?????????????????????

????????????????

???????????????????????

???????????????????????????????????????

???????????????????????????????????????

????????????????????????

???????????


Answers:
author: Ai Hirama
body: ???????????????????????????????

????????????????????????????????????????????????????????????????????

?????????????????????????????????????????

![????????? 2018-05-14 9.13.28.png](https://community.atlassian.com/t5/image/serverpage/image-id/21939iC11C5C5865E343F0/image-size/large?v=v2&px=999 "????????? 2018-05-14 9.13.28.png")

???????????????????\[??????\] ? \[Trello\] ? ?????????URL?????????

???????????????  


author: Ai Hirama
body: ??????????????????

????????????????????????????????????????????????

???????????????????????


author: ????
body: ????????????????????

???????????????????????

???????????

????????????????????????????????

????????????????????????????????


Tags: language-ja

trello
I can't connect to Github from Sourcetree
Asked by asif-nuaa:

I have a github account and I installed sourcetree. I try to follow the tutorials in atlassian website but tutorials screens are outdated, while setup screens are changed.

![github.PNG](/t5/image/serverpage/image-id/21910iF7190F53A37F5B66/image-size/large?v=v2&px=999 "github.PNG")


Answers:
author: Ana Retamal
body: Hi Asif! The screens have changed but the functionality is still the same, you need to enter the same data as explained at [Connect your Github account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html).

Did you encounter any issue while doing it? If so, can you tell us what was the problem and post a screenshot of the error you got? We'll be happy to help!

Kind regards :)

Ana
origin/master doesn't move
Asked by chrisglubish:

A few days ago the remote origin/master flag stopped moving along when I commit/push

Everything is working just confused why this is happening or what the implications may be. See screenshot. The "origin/master" just stays at May 6 as we keep marching along.

![Capture.PNG](/t5/image/serverpage/image-id/21927i4287C949E7B420B9/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: minnsey
body: Excuse the stupid question, but when you pushed did it complete? Are the commits you expect showing on your host?  

If there were extra commits on the host, I would expect the Branches/master to show a count of extra commits.  

Does running a fetch update master?  

Alternatively from the terminal you can run   

\>git fetch  
\>git log origin/master  

this should show you the log for the remote  

<br />

comments: author: chrisglubish
body: Thanks Michael,

Yes, everything has been pushing fine.

From my colleagues perspective everything is working fine. So he is getting my commits.

I've ran a fetch a bunch of times, it had no effect. I also checked the log as you suggetsed, and it shows the entries from May 6 back.

BUT, the repository in Bitbucket (the origin/master, right?) shows all of commits right up to May 13.

Screenshots attached![terminal.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/21998i62231F03F206F018/image-size/large?v=v2&px=999 "terminal.jpg")![bitbucket.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/21999i771422B6231C3BA3/image-size/large?v=v2&px=999 "bitbucket.jpg")


author: minnsey
body: OK, if git fetch doesn't seem to be picking up the new commits then it doesn't sound like its a specific Sourcetree issue.  

It sounds like fetch runs but does nothing?  

What happens if you clone the repo again? Is it possible your current copy is corrupted in someway


author: chrisglubish
body: Its fine if I clone. So something is indeed off with my current copy. I'll just move along, assume it was a glitch and use the clone. Thanks for your assistance.


author: minnsey
body: A mystery, but I'm glad you are up and running again.
Unable to clone a bitbucket git repo due to password but password is correct
Asked by heckubiss:

I am using Atlassian Sourcetree 2.5.5.0

I can click on the remote tab and see my bitbucket repositories.

When I try to clone one of my repos it says its not a valid source path/url

When I click on details I get this.

"

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://heckubiss@bitbucket.org/heckubiss/tt.git  
Output:  
Error: remote: Too many invalid password attempts. Log in at <https://id.atlassian.com/> to restore access.  
fatal: unable to access 'https://heckubiss@bitbucket.org/heckubiss/tt.git/': The requested URL returned error: 403

"

Yet When I go to tools-options-authentication and edit my bitbucket account and refresh password it says authentication OK


Answers:
author: burnwa
body: I get this error very often using Smartgit or just the command line (completely independent of Smartgit).

I believe there's some timeout on the Atlassian side. When this problem happens, I can go to a different computer, on a different network even, and log in to Bitbucket. This will fix the problem on the original computer. The problem invariably resurfaces after an extended period of time not accessing Bitbucket.


author: minnsey
body: Hi  

It is possible to get your account in a state where OAuth tokesn can be generated by REST/Git actions are blocked due to too many invalid attempts.  

If you use you browser to explicitly logout/login in to <https://bitbucket.org> or https:/id.atlassian.com it should reset any locks.


Tags: bitbucket

bitbucket-cloud

cloud
How do you delete a word from the user dictionary?
Asked by danielklein_hmrreferrals:

I accidentally hit "ignore" instead of the suggested correction. How do I remove the incorrect entry from the dictionary?


Answers:
author: bgannin
body: This isn't actually related to Sourcetree... that said, what OS are you on?

comments: author: danielklein_hmrreferrals
body: I'm using WIndows 10. I was writing my commit message. I can't find an option in Sourcetree to edit the dictionary or undo a mistake.
Sourcetree - password rejection on push/pull
Asked by hairydalek:

I am getting this error when using Sourcetree to push/pull from Bitbucket. The erros message is:
> remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
>
> fatal: Authentication failed for '\<project path\>'

I have updated the password in Sourcetree. I am able to log in to Bitbucket using Safari, so it's not the password that's a problem.

Running Sourcetree 2.7.3 on Mac OS X 10.13.4

This problem started last night, on both machines that I use.


Answers:
author: Manju
body: If you are using ssh, please check if the ssh-agent has your keys loaded. If not, please add them to the agent.

Run below commands in terminal to do so,

To check if keys are loaded:

```
ssh-add -l
```

To add keys to agent:

```
ssh-add <path_to_key>
```

more like,

```
ssh-add ~/.ssh/id_rsa
```

Key in the passphrase used while generating the ssh key and you should be good to go.


Tags: error

mac

password
why can not connect github account
Asked by Xiangfeng Xu:

![???? 2018-05-10 21.36.27.png](/t5/image/serverpage/image-id/21718i9C387CB7B6DE088B/image-size/large?v=v2&px=999 "???? 2018-05-10 21.36.27.png")

![???? 2018-05-10 21.36.27.png](/t5/image/serverpage/image-id/21718i9C387CB7B6DE088B/image-size/large?v=v2&px=999 "???? 2018-05-10 21.36.27.png")


Answers:
author: Ana Retamal
body: Hi Xiangfeng! Where did you take that screenshot from? If you're trying to connect Sourcetree to your Github account, you can do so by following the steps at [Connect your Bitbucket or Github account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html).

Let us know if you have any questions!

Ana
Has anyone else had issues logging into Atlassian when downloading SourceTree?
Asked by Andrea Fox:

I've been trying to download Source Tree for months now and I can never get past the Atlassian log in part. At this point it is saying my credentials are invalid even though I've changed my password multiple times and using the correct email. I've tried creating another Atlassian account and that didn't work. I've uninstalled and re-installed and that didn't help. I'm able to log into Atlassian's site with no issues, but through the Source Tree download it never works it either spins and never actually logs in or I get invalid credentials.


Answers:
author: Ana Retamal
body: Hi Andrea, I'm sorry to hear you're not able to go through the logging process. Are you on Windows or Mac? If you're on Windows, make sure Internet Explorer is updated to the latest version, as Sourcetree relies on it for the authentication part. Also, try the following:

* Turn off compatibility mode in IE. To do that, open Internet Explorer, go to the *Advanced options* tab and click on *Reset your Internet Explorer Settings*
* Check *Delete personal settings*
* Change your Internet Explorer Security Zone Settings:

1. Open IE, click on the gear
2. Select "Internet Options"
3. Select the "Security" tab
4. Select "Custom Level" for Internet
5. Find "Access data sources across domains" and select "Enable" (make note of what the setting currently is)
6. Try logging into Sourcetree again

After logging in, follow steps 1-5, but ***reset the setting back to the previous option***.

If you're still having issues after that, please send us a screenshot so we can continue helping you.

Kind regards!

Ana
What is the best way to use the option 'Merge branchname into current branch'
Asked by yasir Malik:

I want to know that what is the best way to use this command 'Merge branch name into current branch. '  

![Screenshot_1.png](/t5/image/serverpage/image-id/21698i617603C7D34B9401/image-size/large?v=v2&px=999 "Screenshot_1.png")  

Let us suppose i want to merge master into develop.   
I checkout to master and pull the changes.  
Then i go back to develop.   
I right click on master branch and click this option.   
And it will merge into develop.   

IS this correct?


Answers:
author: bgannin
body: Hi Yasir,

Yes, that's the correct sequence of steps and will do exactly what you're looking for. You'll need to review the merge results, resolve any conflicts, and provide a message for the commit to your current branch.

Cheers,

Brian Ganninger  
Product Manager, Sourcetree


Tags: merge
Login Error By Sourcetree and IntelliJ
Asked by codekon:

Hello,

I want to use my Bitbucket Account for IntelliJ and SourceTree.

Both of them returns by login with a message that my username not found.

My password is correct because I can login by website.

Following error messages:

By SourceTree: "Failed to check login for user \[{myusername}\]: The URL \`<https://bitbucket.org/rest/api/1.0/users/{myusername>}\` returned code \`Not Found\`.

By IntelliJ: Can\`t login: Can\`t get user info 404 - null Not Found

I\`m looking forward to your apply.


Answers:
author: Ana Retamal
body: Hi Dilek! I'm a bit confused regarding what you're trying to achieve, can you elaborate a bit more on your description? Also, please provide the following so we can help you:

* Are you using Bitbucket Cloud or Server?
* Which OS and Sourcetree version do you have?
* Are you using your username or your email address?
* Can you send us a screenshot so we can see where are you stuck?

Regarding IntelliJ, I'm not sure what you're trying to do, are you trying to connect it to Bitbucket? If so, [these instructions](https://blog.johannfenech.com/?p=319) could help.

Let us know!

Ana


Tags: intellij-idea

login
"Working copy" does not react on local file changes
Asked by M?rti??:

Hello.   
I pushed new project into new repository - everything worked well. Then I did few changes to my files locally. Usually in "Working copy" I can see new changes, which is very covenient. Now, I don't see anything, even though local changes are made. I tried to filter by "Untracked", "Pending"... Still nothing. Do I have to somehow "remind" SC to register my local changes or what? Thanks in advance.


Answers:
author: M?rti??
body: Bump.
MAC Os using external keyboard
Asked by Tessier:

Hi,

I'm using a regular external keyboard with the mac, on the keyboard there's a numpad and when I push number sourcetree react very strangely, it close pop-up, close the input... it's a real pain to use.  
The default macbook keyboard is a complete mess (this problem is related to apple) but other soft handle the numpad correctly (i.e if I push the number 1 it show 1 in the input box) only sourcetree react weirdly. There's maybe something to do on your side to support this.

If you do so it will be very gentle :) Certainly not high priority as maybe some people are able to use the default keyboard of their mac book of just gave up and now use the number on top line.

Way to reproduce:

- Plug a generic keyboard with a numpad in your macbook.

- open sourcetree create a branch and use the numpad the pop-up will disappear.

Thanks for this good product.


Answers:
author: bgannin
body: Hi Tessier,

Please create a new ticket ([Mac bug tracker](https://jira.atlassian.com/browse/SRCTREE)) with your excellent details and we'll take it from there.

Thanks,

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Tessier
body: Got it!

Thanks for the reply!


author: Tessier
body: <https://jira.atlassian.com/browse/SRCTREE-5712>
Using SourceTree with 2FA and GitHub
Asked by ksmurphy141:

There is a help page for "Two-Factor Authentication (2FA) with GitHub in SourceTree" (<https://confluence.atlassian.com/sourcetreekb/two-factor-authentication-2fa-with-github-in-sourcetree-402033499.html>) but it specifies:  

"For versions earlier than SourceTree 2.4 for Mac and SourceTree 1.10 for Windows."  

Where is the help page on this topic for Mac versions after 2.4? Mine is 2.5.1.


Answers:
author: Manju
body: The same set of instructions for Mac version too. Also, we recommend you to use the latest version of Sourcetree which includes a number of security fixes with git and fixes for authentication issues.


Tags: 2-factor-authentication

github

mac
Can't login to bitbucket server accout when username is an email
Asked by asalkeld:

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**%40**corp.com/

Question:

is this a bug (know or not), or are we configuring something wrong?

Thanks

Angus


Answers:
author: Mike Corsaro
body: 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 "_"


author: Maxime Lemanissier
body: I created a ticket there: <https://jira.atlassian.com/browse/SRCTREEWIN-8872>  
Looks like it will be fixed soon.


author: Andriy Lishchytovych
body: 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.


author: Andriy Lishchytovych
body: 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.


author: josiahsansone
body: 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.


author: Mike Corsaro
body: 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.

comments: author: asalkeld
body: 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".


author: bgannin
body: 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

comments: author: asalkeld
body: Thanks [@bgannin](/t5/user/viewprofilepage/user-id/744444) this is super annoying, and seems like an easy fix.


Tags: windows
Fix position / display of branches
Asked by AeroBuffalo:

Is there any way to fix the position of the branches being displayed? Something similar to [this bitbucket image](https://wac-cdn.atlassian.com/dam/jcr:61ccc620-5249-4338-be66-94d563f2843c/05%20(2).svg?cdnVersion=kv) or [this git flow image](http://nvie.com/img/git-model@2x.png).

The current rendering of the branches will zig-zag them, making it difficult to follow branch paths and determine which branch a commit is on. I have provided an example in the picture below. As is shown in the picture, SourceTree makes it:

* Appear that the master branch continues up to the top, 3 more commits
* That 901 branches off of master at 6.5.901.8, instead of at 6.5.0.2.
* Does not really show that the 902 branch is in fact a branch, and branches off of 6.5.901.8

Yes, if one follows the tags and branch information to the right of the lines. But if there was a way to display the branches like the two picture above, it would make it more immediately clear and intuitive.

![SourceTreeBadBranchRendering.PNG](/t5/image/serverpage/image-id/21572i2FC72AE004BEBC6E/image-size/large?v=v2&px=999 "SourceTreeBadBranchRendering.PNG")


Answers:
author: minnsey
body: Hi  

Thanks for the suggestion, if you create a feature request or improvement at <https://jira.atlassian.com> we can run it past our designers.