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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.