REOPENED254336
WebKit Bugzilla patch review action redirects non-patches infinitely
https://bugs.webkit.org/show_bug.cgi?id=254336
Summary WebKit Bugzilla patch review action redirects non-patches infinitely
Michael Catanzaro
Reported 2023-03-23 08:36:49 PDT
This is a decade-old bug that I've just never taken the time to properly report before now. Try to load https://bug-254326-attachments.webkit.org/attachment.cgi?id=465550&action=review in WebKitGTK and the load will fail with error message "Load cannot follow more than 20 redirections." If we try the same thing with curl: $ curl -L 'https://bug-254326-attachments.webkit.org/attachment.cgi?id=465550&action=review' curl: (47) Maximum (50) redirects followed So WebKitGTK has the same behavior as curl. Problem is https://bug-254326-attachments.webkit.org/attachment.cgi?id=465550&action=review redirects to https://bugs.webkit.org/attachment.cgi?id=465550&=&action=review, but that itself redirects back to https://bug-254326-attachments.webkit.org/attachment.cgi?id=465550&action=review, so there's no winning.
Attachments
Alexey Proskuryakov
Comment 1 2023-03-23 14:58:12 PDT
This happens when the attachment isn't a patch. It would be nice to make the redirection make more sense indeed.
Radar WebKit Bug Importer
Comment 2 2023-03-30 08:37:15 PDT
lingho@apple.com
Comment 3 2023-03-30 09:05:50 PDT
How does one gets to this link that includes action=review?
Alexey Proskuryakov
Comment 4 2023-03-30 09:09:47 PDT
Bugzilla emails contain links with "action=review" for every added attachment.
Michael Catanzaro
Comment 5 2023-05-08 13:55:26 PDT
(In reply to Alexey Proskuryakov from comment #4) > Bugzilla emails contain links with "action=review" for every added > attachment. Proposal: we could simply stop adding this to the links in emails? There are very few patches being landed via Bugzilla nowadays, so the desired action= is almost never going to be "review". Then most people would never notice this bug.
Alexey Proskuryakov
Comment 6 2023-05-08 15:58:57 PDT
We can probably make the appending conditional almost as easily. The review functionality is all ours, not coming from Mozilla, so whoever implemented this must have made too big of a simplification.
Michael Catanzaro
Comment 7 2024-11-06 09:25:57 PST
Michael Catanzaro
Comment 8 2024-11-06 09:28:00 PST
Alexey, if you could check the pull request, that would be great. Thanks!
EWS
Comment 9 2024-11-06 16:24:39 PST
Committed 286257@main (26082efe5dfd): <https://commits.webkit.org/286257@main> Reviewed commits have been landed. Closing PR #36263 and removing active labels.
Michael Catanzaro
Comment 10 2025-03-06 05:13:04 PST
This is not actually fixed on bugs.webkit.org. Is it possibly that the change has simply not been deployed yet? If it has been deployed, then we should reopen this.
Ling Ho
Comment 11 2025-03-06 17:02:42 PST
Verified that the changes have been deployed on the server.
Michael Catanzaro
Comment 12 2025-03-06 17:52:17 PST
OK, well it's still broken as of today, so reopening. :(
Note You need to log in before you can comment on or make changes to this bug.