Closed Bug 498678 Opened 15 years ago Closed 15 years ago

Periods (.) should be acceptable in article titles

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cww, Assigned: paulc)

References

Details

(Whiteboard: sumo_only)

Attachments

(3 files)

Not being able to have version numbers or website names in article titles is very annoying.  (eg both of the following would be broken: Firefox does not load emails on Yahoo.com or Cannot update from early versions of Firefox 3.0 to Firefox 3.5)

This bug is to investigate WHY we can't have . and if we can make that allowable.

See also bug 474368 and bug 465029
As per bug 465029 comment 6, this should be fixed once we upgrade.
Attached patch patch, v1Splinter Review
This allows dots in articles, but articles ending with ".redirected" won't work because of this rule:
RewriteRule ^([\-a-zA-Z]+)/kb/([^\?]+)\.redirected$    tiki-index.php?page=$2&locale=$1&redirected=y     [QSA,L]

I think that's acceptable.
Assignee: nobody → paul.craciunoiu
Attachment #388818 - Flags: review?(laura)
Comment on attachment 388818 [details] [diff] [review]
patch, v1

This will work, but we need to test for side effects (QA!!!) :)
Attachment #388818 - Flags: review?(laura) → review+
r48068 / r48069
Will need to run webroot/htaccess.sh to see this. I'll file an IT bug (wiating to see if there are other htaccess patches first)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
This actually refers to KB articles.
Status: VERIFIED → RESOLVED
Closed: 15 years ago15 years ago
Per IRC, reopening because when kicking off a URL such as https://support-stage.mozilla.org/tiki-editpage.php?page=this.article.title.has.a.lot.of.periods&quickedit=Edit, I see just an empty SUMO page.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
While testing, I found out allowing periods "breaks" the friendly URLs for tiki links. I will try to update this bug for that + the exclude "." from the warning in bug 465029.
Attached patch patch, v2Splinter Review
This allows periods for the list of bad characters in bug 465029. Figured it makes more sense to file this here.
Attachment #391951 - Flags: review?(smirkingsisyphus)
Attachment #391951 - Flags: review?(laura)
Attached patch SQL updateSplinter Review
This is the SQL update that will allow articles with periods to be rewritten to friendly URLs. To test this, make sure to clear the cache (in cachelib.php).
Attachment #391952 - Flags: review?(laura)
Attachment #391951 - Flags: review?(laura) → review+
Attachment #391952 - Flags: review?(laura) → review+
Attachment #391951 - Flags: review?(smirkingsisyphus)
r48732 / r48733
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Comment 7's URL, https://support-stage.mozilla.org/tiki-editpage.php?page=this.article.title.has.a.lot.of.periods&quickedit=Edit, now works for me; is that enough to verify this, or do I have to wait for SQL to be run, to test the "friendly URLs" mentioned in comment 10?

How do I test that part, BTW?
go to https://support-stage.mozilla.org/kb/this.article.title.has.a.lot.of.periods?bl=n

(currently dead but should give article when sql is run.)
And when will the SQL be run?  Is there a bug filed, Paul?
(In reply to comment #13)
> (currently dead but should give article when sql is run.)
Actually, it'll be dead until htaccess.sh is run.
(In reply to comment #14)
> And when will the SQL be run?  Is there a bug filed, Paul?
I thought to wait for other SQL bugs, but why not bug IT with this and file another one when we have others? :)
Filed bug 508925 for testing on stage.
Yay, article in comment 13 works now! Check it out Stephen :)

However, the log wasn't enabled for me on that page. Noted in bug 500239.
Verified FIXED on https://support-stage.mozilla.org/kb/this.article.title.has.a.lot.of.periods?bl=n when logged in beforehand; bug 500239 is separate.
Status: RESOLVED → VERIFIED
OS: Linux → All
Hardware: x86 → All
This created a regression -- see bug 513823

Backed out in 51084 / 51088.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Filed bug 515302. We should reapply this patch as originally posted once that bug is fixed.
re-committed first patch in r51156 / r51157
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Verified FIXED on https://support-stage.mozilla.org/en-US/kb/this.article.title.has.a.lot.of.periods?bl=n -- tested:

* creating
* renaming
* translating

Also, regression-tested the disallowed characters functionality.
Status: RESOLVED → VERIFIED
Whiteboard: tiki_bug
I made sure the badchar list matches the latest version on SUMO.

However, the rewrite rules are likely to be sumo_only, which is not an issue since they are entirely custom, for now. The ones in the standard distribution seem more permissive.
Whiteboard: tiki_bug → sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: