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)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jason.barnabe, Assigned: jsocol)

References

()

Details

(Whiteboard: forumux_only sumo_triage)

Attachments

(1 file)

Target Milestone: --- → Future
Attached patch SQL patch, v1Splinter Review
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)
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
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.
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?
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 on attachment 390050 [details] [diff] [review]
SQL patch, v1

Let's get it into QA.
Attachment #390050 - Flags: review?(laura) → review+
(In reply to comment #7)
Laura: should I file an IT bug for running the SQL and clearing the cache on ForumUX?
On the staging server?  Yep.
Depends on: 511993
Cheng, Chris: want to verify this on our forumux branch?
http://sumo-forumux.stage.mozilla.com/en-US/kb/
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
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.
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 → ---
Depends on: 517975
The SQL was run on forumux, not on support-stage.  Filed  bug 517975 to get it run there.
Closing since bug 517975 closed. Stephen?
Status: REOPENED → RESOLVED
Closed: 15 years ago15 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
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.

Attachment

General

Created:
Updated:
Size: