Closed Bug 931355 Opened 12 years ago Closed 12 years ago

Update See Also: whitelist for sourceforge.net new url format

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 919122

People

(Reporter: gaston, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

(Not sure that's the proper product/component) While trying to add a See Also: entry on bug 931354, BMO rejected a perfectly valid sf.net bug url: https://sourceforge.net/p/levent/bugs/320/ is not a valid URL to a bug. See Also URLs should point to one of: ... A bug on sourceforge.net. ... Maybe a regex should be updated somewhere in BMO's admin ?
Upstream issue as the current code is looking for /tracker/ in the path and the URL you have pasted does not contain that so it does not consider it as a valid link. dkl
Assignee: nobody → create-and-change
Component: User Interface → Creating/Changing Bugs
Product: bugzilla.mozilla.org → Bugzilla
QA Contact: default-qa
Version: Production → 4.5
Summary: Update See Also: whitelist for sourceforg.net new url format → Update See Also: whitelist for sourceforge.net new url format
I had a quick look at the source, and to me it seems Bugzilla/BugUrl/SourceForge.pm:should_handle() is where the fix should be applied. I dont have a full setup of bugzilla, but in pseudocode this could be: # SourceForge tracker URLs have two forms: # http://sourceforge.net/tracker/?func=detail&aid=111&group_id=111&atid=111 # https://sourceforge.net/p/levent/bugs/320/ return (lc($uri->authority) eq 'sourceforge.net' and ($uri->path =~ m|/bugs/| or ($uri->path =~ m|/tracker/| and $uri->query_param('func') eq 'detail' and $uri->query_param('aid') and $uri->query_param('group_id') and $uri->query_param('atid'))) ? 1 : 0; }
Attached patch sfBugURL (obsolete) — Splinter Review
Attachment #8341284 - Flags: review?(dkl)
Dup of bug 919122?
Comment on attachment 8341284 [details] [diff] [review] sfBugURL >=== modified file 'Bugzilla/BugUrl/SourceForge.pm' > # http://sourceforge.net/tracker/?func=detail&aid=111&group_id=111&atid=111 >+ # https://sourceforge.net/p/levent/bugs/320 With the 2nd syntax, the regexp must look for /p/*/bugs/d+, which takes no parameter.
Attachment #8341284 - Flags: review?(dkl) → review-
OS: OpenBSD → All
Hardware: Other → All
Attached patch sfBugURL v2Splinter Review
Fixed 2nd syntax to be more precise on URL
Attachment #8341284 - Attachment is obsolete: true
Attachment #8341301 - Flags: review?(LpSolit)
Comment on attachment 8341301 [details] [diff] [review] sfBugURL v2 >+ # https://sourceforge.net/p/levent/bugs/320 /bugs/ is not the single allowed path. I can find at least /tickets/ and /feature-requests/.
Attachment #8341301 - Flags: review?(LpSolit) → review-
(In reply to Andre Klapper from comment #4) > Dup of bug 919122? Yes!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: