Closed
Bug 436106
Opened 16 years ago
Closed 15 years ago
[ForumUX] Spaces in URLs are converted to plusses
Categories
(support.mozilla.org :: Forum, task)
support.mozilla.org
Forum
Tracking
(Not tracked)
VERIFIED
FIXED
1.4
People
(Reporter: jason.barnabe, Assigned: jsocol)
References
()
Details
(Whiteboard: forumux_only sumo_triage)
Attachments
(1 file)
65 bytes,
patch
|
laura
:
review+
cww
:
review+
|
Details | Diff | Splinter Review |
If you post a link to http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.14/win32/en-US/Firefox%20Setup%202.0.0.14.exe it becomes a link to http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.14/win32/en-US/Firefox+Setup+2.0.0.14.exe It should just stay the same.
Updated•16 years ago
|
Target Milestone: --- → Future
Comment 1•15 years ago
|
||
Removing the regex for turning " " (space) into "+" (plus) does the trick. I used the following test post: --------------- ((Test kb rename old|blah)) [http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.12/win32/en-US/Firefox%20Setup%203.0.12.exe|text] --------------- Noted that internal links still work as expected.
Assignee: nobody → paul.craciunoiu
Attachment #390050 -
Flags: review?(laura)
Attachment #390050 -
Flags: review?(cwwmozilla)
Comment 2•15 years ago
|
||
Also bumping the severity, since this breaks links with spaces (e.g. for links to download our releases)
Severity: minor → normal
Summary: Spaces in URLs are converted to plusses → [ForumUX] Spaces in URLs are converted to plusses
Target Milestone: Future → 1.4
Comment 3•15 years ago
|
||
Oh. For testing, make sure to clear the cachelib (regexes are cached there, see webroot/lib/smarty_tiki/outputfilter.urlt.php)
Attachment #390050 -
Flags: review?(cwwmozilla) → review+
Comment on attachment 390050 [details] [diff] [review] SQL patch, v1 tested on sumotools and it wfm.
Comment 5•15 years ago
|
||
Did you test for regressions? That is, is this bit of regex used by any other bits of code where it might actually be correct?
Comment 6•15 years ago
|
||
I tested a bit, URLs with spaces seem to be handled alright in articles. Does it work for you Laura? Try removing the ! before $cachelib on line 95 of outputfilter.urlt.php to test.
Comment 7•15 years ago
|
||
Comment on attachment 390050 [details] [diff] [review] SQL patch, v1 Let's get it into QA.
Attachment #390050 -
Flags: review?(laura) → review+
Comment 8•15 years ago
|
||
(In reply to comment #7) Laura: should I file an IT bug for running the SQL and clearing the cache on ForumUX?
Comment 9•15 years ago
|
||
On the staging server? Yep.
Comment 10•15 years ago
|
||
Cheng, Chris: want to verify this on our forumux branch? http://sumo-forumux.stage.mozilla.com/en-US/kb/
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Whiteboard: forumux_only
(In reply to comment #8) > (In reply to comment #7) > Laura: should I file an IT bug for running the SQL and clearing the cache on > ForumUX? Not sure if this was filed before, but looks like we need it now, given that the URL in my test post in https://support-stage.mozilla.org/tiki-view_forum_thread.php?comments_parentId=446729&forumId=4 still gets a "+" added where %20 (space char) was.
Updated•15 years ago
|
Assignee | ||
Updated•15 years ago
|
Assignee: paulc → james
Reopening; SQL's been run in bug 511993, and my test post in comment 11's URL still has + characters as delimiters.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 13•15 years ago
|
||
The SQL was run on forumux, not on support-stage. Filed bug 517975 to get it run there.
Assignee | ||
Comment 14•15 years ago
|
||
Closing since bug 517975 closed. Stephen?
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
(In reply to comment #14) > Closing since bug 517975 closed. Stephen? Yup, w00t; verified FIXED on https://support-stage.mozilla.org/tiki-view_forum_thread.php?comments_parentId=446729&forumId=4.
Status: RESOLVED → VERIFIED
Comment 16•15 years ago
|
||
Not sure if this needs upstreaming?
Whiteboard: forumux_only → forumux_only sumo_triage
You need to log in
before you can comment on or make changes to this bug.
Description
•