-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django URL patterns broken in 1.32.0 #2446
Comments
This reverts commit ad44324. See getsentry/sentry-python#2446
Hey @nijel, thanks for raising this. This is indeed caused by the linked PR reverting the change that caused this regression. (I elaborated on the underlying issue in this comment.) In your case, it's the closing parenthesis in the regex that's throwing our resolver off. (Which shouldn't happen and is a bug.) We can't revert to the behavior in 1.31.0 since it breaks multiple groups. Fixing this will require more fundamental changes to the resolver -- as I wrote in the linked comment, what we're currently doing is by design a best effort solution. We have to investigate how to do this properly and it'll likely take some time. |
Related: #1527 |
Maybe I'm missing something, but why not use |
|
@sentrivana yes please, if we can just use the django stuff directly, let's do that. |
So |
How do you use Sentry?
Self-hosted/on-premise
Version
1.32.0
Steps to Reproduce
"translate/<object_path:path>/"
pathThe 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).The text was updated successfully, but these errors were encountered: