Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can't create branch after updating stash to bitbucket

BUTIK February 9, 2018

I have updated my Stash 3.11.2 to Bitbucket 5.7.1

New server working well when I connect to  xttp://dns-name.ru:7990. If I connect to xttps://dns-name.ru I cant make a branch or write a comment at PR.

There is warning in logs

2018-02-09 11:09:11,581 WARN  [http-nio-7990-exec-3] username @hash ip-adress,127.0.0.1 "POST /rest/analytics/1.0/publish/bulk HTTP/1.0" c.a.p.r.c.s.j.XsrfResourceFilter Additional XSRF checks failed for request: xttp://dns-name.ru/rest/analytics/1.0/publish/bulk , origin: xttps://dns-name.butik.ru , referrer: xttps://dns-name.ru/projects/WB/repos/repo-name/browse/.env.stage , credentials in request: true , allowed via CORS: false

Server name in "Server settings" is correctly setted to dns-name.ru

1 answer

1 accepted

1 vote
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 9, 2018

Based on the WARN message, it looks like you're terminating the SSL connection at the proxy server, but that Bitbucket hasn't been configured to 'know' that the connection is secure (referrer is https, but request is http).

Have a look at upgrade documentation to see how to migrate your  server.xml customizations to bitbucket.properties.

In this case, I think you're missing something like

server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=mycompany.com

Just to be sure you've got everything covered, I'd suggest going through the linked documentation to double check that all configuration has been migrated correctly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events