Add dynamic, auto-populating Bugzilla link from 404 page in Kohana

RESOLVED FIXED in 1.7.7

Status

Socorro
General
--
minor
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: stephend, Assigned: brandon)

Tracking

Bug Flags:
in-litmus ?

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

7 years ago
The link to auto-populate a few Bugzilla fields from bug 630557 could also pre-populate the URL field, if you just tack on the current page as a param, like so:

&bug_file_loc=http%3A%2F%2Fsome_url

Full URL would be: https://bugzilla.mozilla.org/enter_bug.cgi?product=Webtools&component=Socorro&bug_file_loc=someurl

(This is assuming you can get some_url (the current page, which is 404'ing) from Kohana, which I think is possible.)
(Assignee)

Comment 1

7 years ago
Created attachment 526810 [details] [diff] [review]
Adding URL to 404

Grabbing the script URI as a second argument for Bugzilla.
Attachment #526810 - Flags: review?(rhelmer)
(Assignee)

Comment 2

7 years ago
Created attachment 526812 [details] [diff] [review]
Less expansive patch

The first patch was too expansive for this specific bug.
Attachment #526810 - Attachment is obsolete: true
Attachment #526812 - Flags: review?(rhelmer)
Attachment #526810 - Flags: review?(rhelmer)
(Reporter)

Updated

7 years ago
Assignee: nobody → bsavage
Attachment #526812 - Flags: review?(rhelmer) → review+
(Assignee)

Comment 3

7 years ago
Fixed in revision 3063 with the patch approved.
(Assignee)

Updated

7 years ago
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Assignee)

Updated

7 years ago
Target Milestone: --- → 1.7.7
(Reporter)

Comment 4

7 years ago
Verified FIXED on https://crash-stats.stage.mozilla.com/topcrasher/byversion/Firefox/4.0b13prefoo:

[08:42:53.000] GET https://crash-stats.stage.mozilla.com/topcrasher/byversion/Firefox/4.0b13prefoo [HTTP/1.1 404 File Not Found 73ms]
--
[08:43:07.035] GET https://bugzilla.mozilla.org/enter_bug.cgi?product=Webtools&component=Socorro&bug_file_loc=http%3A%2F%2Fcrash-stats.stage.mozilla.com%2Ftopcrasher%2Fbyversion%2FFirefox%2F4.0b13prefoo [HTTP/1.1 200 OK 820ms]

resulting field in Bugzilla was "http://crash-stats.stage.mozilla.com/topcrasher/byversion/Firefox/4.0b13prefoo".
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Flags: in-litmus?

Comment 5

6 years ago
Reopening this because the bugzilla url parameter does not contain HTTPS which is the standard protocol for Socorro.

Actual: bug_file_loc=http://crash-stats-dev.allizom.org/invaliddomain

Expected: bug_file_loc=https://crash-stats-dev.allizom.org/invaliddomain
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Component: Socorro → General
Product: Webtools → Socorro
(Assignee)

Comment 6

6 years ago
This is using the built in server-generated URL. Since Apache will automatically redirect a user to HTTPS if necessary, this doesn't present a security problem. Since this bug has already been released, I'm closing as resolved-fixed but the person who reopened it should feel free to file a new bug if they feel there is still merit to this issue.
Status: REOPENED → RESOLVED
Last Resolved: 7 years ago6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.