Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to view files with brackets in the filename – “This diff couldn't be retrieved”

Lehme
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 4, 2025

We’re using Next.js App Router in our project, which relies on dynamic route folders like [partnernummer] or [slug]. When such folders are part of a pull request in Bitbucket (Data Center), the affected files cannot be viewed in the diff – instead, we just see:

“This diff couldn’t be retrieved. Try reloading the page.”

This seems to be related to the square brackets in the folder names. Reloading doesn't help, and the error occurs consistently for any file inside a [bracket] folder. The Button "View the entire source as file" also returns HTTP 400 Bad Request.

This makes it impossible to review changes in these files through the Bitbucket UI.
Is there any known workaround or upcoming fix to support folders or filenames with brackets?

Annotation 2025-06-04 153051.png

1 answer

0 votes
Aman Shrivastava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2025

Hi @Lehme 

I tested this locally and was unable to reproduce the issue; the diff displays correctly even when folders with brackets in their names are present. There might be a different underlying cause, and I recommend raising a ticket with Atlassian support to review the logs and find the error causing the issue.

Regards,
Aman

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events