Closed Bug 275939 Opened 20 years ago Closed 20 years ago

Classification templates use wrong filtering in URLs

Categories

(Bugzilla :: Administration, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: bugzilla, Assigned: bugzilla)

Details

Attachments

(1 file)

In urls, the classififcation code uses 'FILTER html'. It should use url_quote.

Patch in a mo....
It would be nice to be able to test for this sort of problem in the testing
suite, but I'm not sure if that would be practical. Thoughts...?
Attachment #169533 - Flags: review?
Target Milestone: --- → Bugzilla 2.20
Regarding the patch:

-> Looks good, thanks!
-> I'm CCing Albert, Joel and Byron who did development and review on the bogus
code.
-> Requesting the appropiate flags for check in.

Regarding testing suite:

-> We could assume that 'FILTER html' inside the '<a ... >' HTML tag would be
bogus most of the time, but that would be a little bit of a hack.
-> In the same spirit, 'FILTER url_quote' outside '<a ... >' tags could be
assumed incorrect.
-> However there are lot of cases where these euristics would fail.
-> Probably that should be another bug.
Status: NEW → ASSIGNED
The original bug implementing this feature is bug 224208 (targetted at 2.20).
Flags: blocking2.20?
Flags: approval?
Attachment #169533 - Flags: review? → review+
Yes, file another bug on the testing suite changes. The best way to see would be
to implement the tests, and see what false positives they threw up and whether
it would be possible to work around them.

Gerv
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval?
Flags: approval+
Checking in template/en/default/admin/classifications/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/classifications/edit.html.tmpl,v
 <--  edit.html.tmpl
new revision: 1.3; previous revision: 1.2
done
Checking in template/en/default/admin/classifications/new.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/classifications/new.html.tmpl,v
 <--  new.html.tmpl
new revision: 1.2; previous revision: 1.1
done
Checking in template/en/default/admin/classifications/select.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/classifications/select.html.tmpl,v
 <--  select.html.tmpl
new revision: 1.3; previous revision: 1.2
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: Classification templates use wrong filtering in urls → Classification templates use wrong filtering in URLs
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: