Skip to content

Django URL patterns broken in 1.32.0 #2446

@nijel

Description

@nijel

How do you use Sentry?

Self-hosted/on-premise

Version

1.32.0

Steps to Reproduce

  1. Upgrade to 1.32.0
  2. Access URL with "translate/<object_path:path>/" path

The urls.py:

https://github.com/WeblateOrg/weblate/blob/03fb51dadc115828b745ca4255be1d5ae0451349/weblate/urls.py#L117-L121

Pattern definition:

https://github.com/WeblateOrg/weblate/blob/03fb51dadc115828b745ca4255be1d5ae0451349/weblate/utils/urls.py#L29-L36

Most likely this is caused by #2432

Expected Result

The event would be captured as /translate/{path}/ as it was before.

Actual Result

Instead, it is captured as /projects/{path}{0,6})/ what is IMHO wrong as there is no repetition of the path argument, the repetition is embedded in it (also, there is extra closing parenthesis).

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions