In our BitBucket server under the "settings" menu:
Support -> Support Tools
I see this:
WARN Bitbucket Server REST API for merging Pull Request fails
That has a link to this:
I followed the instructions to #1: find the "version" and then executed this CURL script to fix it:
curl -H "Content-Type:application/json" -H "Accept:application/json" --user admin:admin -X POST http://tcabitbucket.taconiccap.com/rest/api/1.0/projects/<PROJ_ID>/repos/<REPO_ID>/pull-requests/<PR_ID>/merge?version=8
That returned this:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<p>The document has moved <a href="https://<myurl>/rest/api/1.0/projects/<myproj>/repos/<myrepo>/pull-requests/3619/merge?version=8">here</a>.</p>
However the problem of not being able to edit files using the BitBucket UI or the REST API remains.
The log analyzer (which causes the message to show up in the Support Tools in Bitbucket Server) uses regular expressions for matching strings in the logs to known strings in knowledge base articles.
Unfortunately that's not always reliable, so the knowledge base article you found may not be applicable at all.
I had a look, and it seems that the string it's finding is "
You are attempting to modify a pull request based on out-of-date information
This is a perfectly normal error to occur on busier systems where a commit may have occurred while you were working on a pull request, so most likely there isn't anything wrong at all.
If you want to be sure, open a support request with us and attach a support zip so we can take a look.
Premier Support Engineer
Thanks for clarifying that the error message could be a red herring.
However we still have the issue of not being able to commit using the BitBucket source web page nor the REST api.
How do we send you the support zip file? I see the place to create one in the "support tools" section of the BitBucket settings page.
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