Unable to export a project when main branch is not analyzed

Dear all,
I have SonarQube Enterprise version 9.9.3 ( I will upgrade to 9.9.5 in the following days).
I am trying to export a project whose main branch is empty and I get the following error.



The main branch is empty because it is not the main branch, but when I select the branches to export I cannot unselect the main branch, thus the error exporting. I cannot make the change of the main branch to the real one because in the current version this implies to delete the branch and I do not want to loose the history of that branch.
I am aware that this problem won’t be an issue in the LATEST 10.2, when the branch can be renamed. In fact I am waiting for this update to be able to rename the branch to the correct one.
I cannot update to this version because my company wants to be in LTA. Is there a way to perform this export being in LTA?
Thank you in advance.

Hey @mvillanueva

I just tried it out, and actually, you can still use Web APIs to export this project.

curl -u username:password -X POST "http://localhost:9000/api/project_dump/export?key=newproj"

Seems like a bug no matter what version you’re running, so I’ll flag this for attention. I don’t expect we’d fix anything on the LTA here, since there’s a workaround.

Thank you for your response.
Best regards.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.