youngmon/atlassian-qna huggingface dataset:
Jira 8.5.3 SMTP Office 365 and STARTTLS
Asked by Gisli Gudmundsson:

Hi, I have Jira software 8.5 and I?m trying to enable SMTP outgoing mail to Office 365. I need to have STARTTLS enabled. I have configured as follows, both with and without the TLS tick. But both do not work, without the tick the authentication is OK but when testing to send mail it comes with an error saying that it requires STARTTLS to work. I have tried to search and I have not found anything that might help. Does anyone know how I can fix this?  

![SmtpServer.png](https://community.atlassian.com/t5/image/serverpage/image-id/151509iDDF2E98C4723CFFE/image-size/large?v=v2&px=999 "SmtpServer.png")


Answers:
author: Simon Tost _TNG_
body: There is a [KB article](https://confluence.atlassian.com/jirakb/unable-to-send-email-with-smtp-server-via-ssl-530-5-7-0-must-issue-a-starttls-command-first-due-to-mail-smtp-starttls-enable-property-218269287.html) about this: There is a environment switch

    -Dmail.smtp.starttls.enable=true

that can be set to enable / enforce STARTTLS.

Sadly it is mentioned [here](https://confluence.atlassian.com/adminjiraserver/setting-properties-and-options-on-startup-938847831.html) only for the imap protocol...

(It **is** also mentioned as an option for the [JNDI way of setting up the SMTP connection](https://confluence.atlassian.com/adminjiraserver/configuring-an-smtp-mail-server-to-send-notifications-947184044.html#ConfiguringanSMTPmailservertosendnotifications-SMTPoverSSL) tough it's not really obvious that this would be transferrable...)

(Not quite related, but: In wilder cases, I suspect the [general Java Mail API docu](https://www.tutorialspoint.com/javamail_api/javamail_api_smtp_servers.htm) might come in handy. eg. in our case I found the \`-D`mail.smtp.userset`\` very well worth trying, bc. it only gives a very generic 'Problem with username and password' error which does not really help. (Microsoft High Volume Email (HVE) does not seem to implement SMTP NOOP.) To be fair, that setting is also mentioned [in the base docu](https://confluence.atlassian.com/adminjiraserver/configuring-an-smtp-mail-server-to-send-notifications-947184044.html#ConfiguringanSMTPmailservertosendnotifications-SMTPoverSSL).)


Tags: bitbucket-server

jira

ms-office-365

server

smtp

ssl
Does Bitbucket show the repository language
Asked by bhuvaneshwari_kannan:

Hello Team,

I want to know if bitbucket shows the languages used in the repository like how GitHub or GitLab shows?

If so, do they use GitHub Linguist?

Thanks in advance!


Answers:
author: Caroline R
body: Hi, [@bhuvaneshwari_kannan](/t5/user/viewprofilepage/user-id/4473375)! Welcome to the community!

Currently, Bitbucket doesn't have a feature that automatically detects the language based on the contents of the source code of a repository.

However, you can manually determine the language of the repository in the repo settings by following the next steps:

* Access your repository and go to **Repository Settings**

* Click on **ADVANCED**

* Select the language you want to use under the "**Language**" field

Then this language will show for all users in the **Source** page of the repo, right-hand column, section titled **Repository details**:

![Screen Shot 2021-07-20 at 1.13.11 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/152081i310BFD8EF2C01F0E/image-dimensions/258x423?v=v2 "Screen Shot 2021-07-20 at 1.13.11 PM.png")

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Richard Cross
body: *"Currently, Bitbucket doesn't have a feature that automatically detects the language based on the contents of the source code of a repository."*

Is this ever planned to be a feature?


Tags: bitbucket-cloud

cloud
Git pull via app password stopped working
Asked by leekowalkowski:

I was able to do a git pull using an app password 2 days ago, but when I did it today, it just says:

remote: Invalid username or password.

git pull doesn't prompt for username, only password could be wrong, I created a new app password just to be sure, but the new app password doesn't work either.

Did something change since 2 days ago?


Answers:
author: leekowalkowski
body: Oh, I was using VSCode's terminal window, a separate terminal window worked fine. So strange, I always use VSCode's terminal window!


Tags: bitbucket-cloud

cloud

password
Authentication failed because the credentials were missing
Asked by Nilesh Darji:

Commit error.

When I commit my project to bitbucket, I get the attached message. it does do a successful commit though. How do I get rid of this message/warning/error.

![IMG_6826.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/151379i258CBD41FE3384A6/image-size/large?v=v2&px=999 "IMG_6826.jpeg")


Answers:
author: Ben
body: Hey Nilesh!

Just reaching out as I can see that this question has not yet been answered by our community.

That error message will either appear due to missing credentials in the configuration of the GIT client you are using, or missing credentials in your Keychain Access application (given that you appear to be using Mac OS).

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Cannot receive invitation link
Asked by OM:

Hello, cannot receive invitation link *\<email address removed by Atlassian Support\>*

No email in spam or else where, can this be fixed?


Answers:
author: Daniel Eads
body: Hi [@Nikita Remizov](/t5/user/viewprofilepage/user-id/444474) ,

The email address you listed had an error returned which our mail service keyed in on and stopped sending further emails:

```
550: 550 LTD BeGet: user not found.
```

I've cleared the error out and additional invitation attempts should send. Please double-check the email can receive other messages from outside your organization before resending the invitation email. If the mail server is still not configured to receive external emails, the same block problem could occur if another invitation is sent. Receiving an email from a Gmail or Yahoo account for example would confirm that the mail server is ready now.

Cheers,  
Daniel \| Atlassian Support


Tags: bitbucket-cloud

cloud
Migrating Bitbucket Production data to Development and Test instances of Bitbucket
Asked by jwcrawford:

Hello,

I would like to migrate production data to our Bitbucket servers in our Dev and Test environments so we can have some data to play around with.

What would be the best method to accomplish this?

<br />

If using the included migration feature to migrate Prod data to test, will both servers have the same data? and still be on separate databases.

I just want to make sure that before I click migrate, we will still have production data in production and production will still be connected to it's oracle database not the database targeted for migration.

Thanks,

Justin


Answers:
author: Christian Glockner
body: Hi Justin,

We've got some pretty extensive documentation on this very topic, take a look at <https://confluence.atlassian.com/bitbucketserverkb/how-to-establish-staging-server-environments-for-bitbucket-server-779171160.html>

Cheers

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
How can I enable a plugin at the repository level?
Asked by Edward Ryan:

I wrote a Bitbucket plugin that listens for the PullRequestOpenedEvent. It works great. But I only want to enable it at the repository level, not the whole system.

I have other plugins that show up under Pull Requests \> Merge checks and Workflow \> Hooks. They're great. I can enable them at the repository level with a dropdown.

That's all I need for my PullRequestOpenedEvent plugin. How can I achieve this in the easiest way possible? Thanks.


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: PullRequestOpenedEvent is not a repository event of any sort that you can write a hook for. It's a simple event. Pull requests are glorified diffs that you can interact with through the webui.

For this event handler to be configurable you don't have the convenience of the configurable hook system. You would need to add your own repo-settings to control how the event listener acts for each repository. When a PR is created, you can determine which repo it is for and check the plugin configuration to derive what should happen.

Hope that helps - BTW, another good place to post developer questions is <https://community.developer.atlassian.com/>

comments: author: Edward Ryan
body: Thanks. I didn't know there was another community for development.

I found <https://community.atlassian.com/t5/Answers-Developer-Questions/Per-repository-Stash-plugin-configuration-without-hooks/qaq-p/554719>

It is 8 years old. I was surprised it still compiled with Bitbucket 7.14. I am currently trying to strip it down and apply it to my plugin.


Tags: bitbucket-server

server
How do I add a reviewer when I create a pull request via the API?
Asked by Mark Wallis:

Looking at the documentation [here](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests#post). This should work:

    {    "title": "My Title",    "source": {        "branch": {            "name": "my-feature-branch"        }    },    "reviewers": [        {            "uuid": "{504c3b62-8120-4f0c-a7bc-87800b9d6f70}"        }    ]}

But it does not, I get a 400.

If I remove the "reviewers" property from the json, the PR creates successfully.

I have confirmed the uuid that I am using is correct (via a call to {{baseUrl}}/workspaces/:ourworkspace/members) and has access to the repo.

So, I don't 'think' I'm doing anything wrong. Can you confirm the functionality works and the documentation is correct? And if so, any suggestions for what else to try?

This is my json:

{ "title": "my PR title",  
"source": { "branch": { "name": "sourcebranch" } },  
"destination": { "branch": { "name": "develop" } },  
"reviewers": \[ { "uuid": "{valid-uuid}" } \]

}


Answers:
author: Theodora Boudale
body: Hi Mark,

I can confirm that this works for me using an API call like the following:
> curl -u \<username\>:\<app-password\> -X POST <https://api.bitbucket.org/2.0/repositories/>\<workspace-id\>/\<repo-slug\>/pullrequests -H "Content-Type: application/json" -d '{"title":"My Title","source":{"branch":{"name":"test3"}},"destination":{"branch":{"name":"master"}},"reviewers":\[{"uuid":"{85h7ba24-d516-4fo6-980c-e5fa6829a41e}"}\]}'

Could you try testing the API call with curl (in case you haven't already)?  
If you get the same error, could you please copy-paste here the exact call and the full output, sanitizing any private/sensitive info like username, password, workspace-id etc?

Kind regards,  
Theodora


Tags: api

bitbucket-cloud

cloud
Errors while installing snyk through npm
Asked by Sanju Ammu:

I'm trying to install and run snyk on a project. I'm facing the below issues

```
script:  
 - npm install -g snyk # binary download also available 
 - snyk test <<project>> 
 - pipe: snyk/snyk-scan:0.5.1 
   variables: 
     SNYK_TOKEN: <<snyk token>>
```

Issue 1: When trying to install snyk using npm install -g snyk command I'm getting the below error

![shot_210714_105819.png](/t5/image/serverpage/image-id/151306i2E703A70F58DF356/image-size/large?v=v2&px=999 "shot_210714_105819.png")

Issue: When I use the command npm install snyk , snyk is installed , but not recognised

![shot_210714_110136.png](/t5/image/serverpage/image-id/151307i5A612F8A465F048B/image-size/large?v=v2&px=999 "shot_210714_110136.png")

Any help on solving this will be really helpful.

Thanks and Regards

Sanju


Answers:
author: Sanju Ammu
body: Issue is fixed by adding the below 2 lines of code.

- npm config set user 0

- npm config set unsafe-perm true


Tags: bitbucket-pipelines
Migration from SVN to Bitbucket document.
Asked by Akshay Bhandakkar:

Hi Team,

We are planning to migrate our SVN to Bitbucket, Can you please provide the Atlassian KB to perform this activity.


Answers:
author: Caroline R
body: Hi, [@Akshay Bhandakkar](/t5/user/viewprofilepage/user-id/4087344)!

We have the following tutorial to guide you on your migration from SVN to Git:

* <https://www.atlassian.com/git/tutorials/svn-to-git-prepping-your-team-migration>

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Akshay Bhandakkar
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) Thanks for the help, We will try this KB to migrate SVN to git.


Tags: bitbucket-cloud

cloud
Azure Web Apps Deploy Pipe has JSONDecode Error
Asked by Adrian Natter:

The [azure web apps deploy pipe](https://bitbucket.org/atlassian/azure-web-apps-deploy/src/master/) is failing with an JSONDecode Error.

Does someone know which could cause this issue?

    INFO: Starting deployment to Azure app service...az webapp deployment source config-zip --resource-group fortix-dev --name dev-angular-nestjs-skeleton --src /opt/atlassian/pipelines/agent/build/package-70.zipERROR: Expecting value: line 1 column 1 (char 0)Traceback (most recent call last):  File "/usr/local/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke    cmd_result = self.invocation.execute(args)  File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in execute    raise ex  File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 386, in _run_jobs_serially    results.append(self._run_job(expanded_arg, cmd_copy))  File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 379, in _run_job    six.reraise(*sys.exc_info())  File "/usr/local/lib/python3.6/site-packages/six.py", line 693, in reraise    raise value  File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 356, in _run_job    result = cmd_copy(params)  File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 171, in __call__    return self.handler(*args, **kwargs)  File "/usr/local/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 441, in default_command_handler    return op(**command_args)  File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 271, in enable_zip_deploy    response = _check_zip_deployment_status(deployment_status_url, authorization, timeout)  File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 2054, in _check_zip_deployment_status    res_dict = response.json()  File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 897, in json    return complexjson.loads(self.text, **kwargs)  File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads    return _default_decoder.decode(s)  File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode    obj, end = self.raw_decode(s, idx=_w(s, 0).end())  File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode    raise JSONDecodeError("Expecting value", s, err.value) from Nonejson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


Answers:
author: Halyna Berezovska
body: [@Adrian Natter](/t5/user/viewprofilepage/user-id/2649836) please, share the structure of your pipeline - that part when you use this pipe. Looks like some variable you passed is not in right structure


Tags: azure

bitbucket-pipelines

cloud
Interactive rebase. i.e. git rebase -i
Asked by Prakash Nadar:

Not sure sourcetree already supports it or the feature does not exist right now. If not, just wondered if you plan to add that feature.

Thanks.


Answers:
author: stevestreeting
body: Not yet - we only support standard rebasing right now, so no squashing etc. I have an item for future development labelled 'history editing', which for Git would be rebase -i and for Mercurial will probably be MQ or the record extension. It's fair to say this isn't a top priority though since it's obviously dangerous in the wrong hands, so it's as much about making the effects super-clear as simply supporting the mechanism - in a way it's safer for only the more experienced command-line jockeys to be using it for the moment.

comments: author: Prakash Nadar
body: I have been using GitX, commandline and Smartgit combo for different things, right now it is mostly SourceTree and commandline. My last commandline that I regularly use is the git rebase -i.Thought I could get rid of that as well.

Thanks for the answer.


author: Dan Winkler
body: We use rebase a ton to rewrite history (on local branches only of course) before merging into the development branch. I'm guessing that this is a highly sought after feature for any serious git user. Please think about including it in a future release! BTW, this is the best git client for the mac by a long shot


author: Ido Ran
body: Hi, I'm mostly using git on Windows using gitextensions tool and they take a simple approuch to rebase. They allow you to point to the branch on which you want to rebase and if you choose interactive they simply open text editor when you need to make the input. It's simple, it's working and it's great. Hope to see your solution soon. Ido.
Push With Mercurial Always Uses --new-branch
Asked by Ryan Tait:

Is there an setting for changing the push command to not always use the --new-branch option?

There's a high amount of repository traffic where I work, because so, "--new-branch" becomes more of a liability than anything.

Would it be possible in the future to ask the user, when pushing, if they 'want to push to a new branch' or not?


Answers:
author: stevestreeting
body: Not right now - but under what circumstances is this a problem? This option simply allows the pushing of a new branch you've created, and I've never come across a situation where that's not what you want.
How to use hg-git with SourceTree?
Asked by Admin LLTech:

I have a repository using hg-git, using Hg 2.0. Hg-Git was installed with easy_install, in system's site-package.

I tried to tell SourceTree to use system's Hg, but it failed (I assume it's because Hg 2.0 can't be patched by SourceTree), now is there a way to tell embedded SourceTree's Hg to use hg-git?


Answers:
author: stevestreeting
body: Using hg-git isn't supported right now. It may be supported in 1.3 just as a fluke, because the support for subrepositories means that hg needs to be able to call git to deal with git subrepos.

In general I'm not sure why you'd use hg-git if you're using SourceTree, since SourceTree supports both git and hg natively. Surely it would be far simpler just to use git directly instead, since SourceTree frees you from having to know the command-line details.

comments: author: Admin LLTech
body: Thanks Steve; I need it because I use bothe Hg and Git working copies, for my specific needs (having a Git base repo, some of my users are using Hg as working copy since it's easier to use), so I want to have the possibliity to browse a Hg version of my repo.


author: Alejandro Santiago
body: Hi, It may come in handy as Unity Cloud uses Git as repo monitoring for the continuos integration build system.I do use Hg for most of my projects and it will be helpful to push release commits to a git repository in order to kickstart the cloud build process


Tags: git
How to add Username
Asked by Devesh Mevada:

Hi,

How can I add different user name and password for different different repositary? Can you suggest me on that.

Regards,

Devesh


Answers:
author: stevestreeting
body: Do you mean change the user which is shown in the commits, or change the user/password used to communicate with remotes?

To change the commit user name, click on the 'Settings' button on the right of the toolbar in the repository window. Then change the details in the section 'User Information'.

To change the user/password for a remote, again in the 'Settings' area for that repository, edit the remotes at the top and include the username you want to use in the URL, e.g. <https://youruser@host/path/to/repo.> SourceTree will prompt you for the password if it doesn't already know it, or if the password is rejected by the server.

comments: author: Devesh Mevada
body: THanks for helping but after this I am getting below error while getting Updates from the server:

hg pull --rebase default

abort: outstanding uncommitted changes

Completed with errors, see above


author: stevestreeting
body: That's a standard Mercurial message - you can't 'pull with rebase' when you have uncommitted changes.

Either commit your changes, or change the 'post pull' option in the Pull dialog to Update instead.


author: Devesh Mevada
body: When I have changed Rebase to Update it shows me below alert:

**When pulling from Subversion repositories, you must use the 'Rebase' option since Subversion history must remain strictly linear.**

**The post-pull action will be changed for you when you dismiss this message, submit the dialog again to proceed.**


author: stevestreeting
body: OK, you didn't say you were using Subversion as your remote.

In that case, you must commit your changes before you pull.
Commit subproject (submodule), how?
Asked by Aleksandr Makov:

I have a library hosted at github where I can push changes to, but, can't find a way to do it in SourceTree. Is there any way to achieve that?

Thanks.


Answers:
author: stevestreeting
body: Right now in 1.2 you'll have to just add the submodule to your bookmarks separately (it's a repo in its own right).

SourceTree 1.3 is approaching completion which has full support for submodules and subrepositories. It not only displays them in the sidebar with details of uncommitted or unpushed changes, but it also allows you to commit your changes and push them from within the parent repository, at the same time (well, just before) you commit/push the parent. There should be a beta to play with available later this month, keep an eye on @sourcetree on Twitter for details.

comments: author: Aleksandr Makov
body: Thanks for the info! Much appreciate it!
previous commit message is not added automatically when amending
Asked by Chad Kouse:

When I click "amend latest commit" it doesn't seem to add the last commit message (post commit-msg hook) to the commit message text box for me. In my case we use gerrit and there is a unique Change-Id generated in the commit-msg hook that needs to be sent withi any amended changes.

using the command line tools "git commit --amend" does this, as do other GUI clients I have used.


Answers:
author: stevestreeting
body: Question was actually about restoring the previous commit message when the amend commit option is checked. This is being tracked here: <https://jira.atlassian.com/browse/SRCTREE-697>


author: stevestreeting
body: I don't think this would be desired behaviour for most people anyway; when you amend a commit, you want control over what's in the commit message. If your tools like to see change ids, you can add them - but really I don't think amending commits that have already been pushed elsewhere is a good idea anyway.

comments: author: Chad Kouse
body: I should make my question more generic - when I click amend it doesn't put my last commit message into the commit message text box for me. This would automatically include any change-Id tacked on from my commit-msg hook. It seems like I only have the ability to pick an old message that I had typed in (before the hook added its change-id)  
See: <http://review.coreboot.org/Documentation/user-changeid.html#_creation>


author: stevestreeting
body: Ah I see - sorry I thought you meant adding the previous commit SHA.

This issue is being tracked here: <https://jira.atlassian.com/browse/SRCTREE-697>
SourceTree for OS X 10.5?
Asked by Rob Rob:

I would like to install this on my home Mac, which is too old to reasonably upgrade to 10.6. Is there an older version of SourceTree that I can install?


Answers:
author: stevestreeting
body: I'm afraid not, the first version of SourceTree required 10.6. I originally started writing it with 10.5 compatibility in mind, but it turned out to be too limiting, and stats I was collecting on OS usage indicated it was a tiny percentage of the user base so I dropped it in favour of better base functionality.