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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot edit using web UI or REST api Edited

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: 

https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-rest-api-for-merging-pull-request-fails-792309002.html?utm_medium=logScan&utm_source=STP

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">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<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>
</body></html>

However the problem of not being able to edit files using the BitBucket UI or the REST API remains.

1 answer

0 votes

Hi Salmaan,

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.

 

Cheers,

Christian

Premier Support Engineer

Atlassian

Hi Christian,

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.

Thanks,

Salmaan

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

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 ...

1,878 views 0 7
Read article

Community Events

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

Events near you