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

Cannot edit using web UI or REST api

Salmaan Shikari January 7, 2020

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
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2020

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

Salmaan Shikari January 8, 2020

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
AUG Leaders

Atlassian Community Events