“Disallowed Key Characters” when passing a tag with a ‘ character (a single-quote) in it
Posted: 07 September 2008 08:19 AM   [ Ignore ]
Newbie
Rank
Total Posts:  14
Joined  2007-12-12

The title pretty much says it all. I’ve got tags with single-quotes in them, along the lines of Pipe’s Dreams, and when I try to view the url of that tag (www.example.com/tags/tag/Pipe’s+Dream), I get a “Disallowed Key Characters” error. I suspect this may be a collision with the URL rewriting I am having the .htaccess file doing (removing the index.php via the dynamic/automatic method - code below), but I don’t know for sure.

.htaccess:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ /index.php?/$1 [L]

Profile
 
 
Posted: 08 September 2008 06:40 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Sandwich,

This is currently a known issue… the trouble is that the Tag module looks at Pipe’s Dream, and Pipes Dream as two seperate Tags, so to remove special characters like that from the Tag name would cause an issue there.

I will keep you posted though smile

 Signature 
Profile
 
 
Posted: 11 September 2008 04:08 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  14
Joined  2007-12-12

Gotcha. Any suggested workarounds in the meantime?

Profile
 
 
Posted: 12 September 2008 08:38 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

You can rename the tag “Pipes Dreams” in the Tag CP smile

 Signature 
Profile
 
 
Posted: 02 October 2008 04:59 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  14
Joined  2007-12-12

Any progress on this? I’ve tried replacing the single quote with ` (the other character on the ~ key) and ’, but both return the same error.

Profile
 
 
Posted: 02 October 2008 06:26 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

Hey Sandwich,

We’ve corrected this issue now with Tag (in development)…

ALL bug fixes and several new features are all folded in. It’s just a matter of testing this thing out now smile

It should not be too much longer, but it is a very substantial release wink

 Signature 
Profile
 
 
Posted: 17 October 2008 10:19 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

This is now fixed with the new version of Tag 2.5 smile
http://www.solspace.com/forums/viewthread/661/

 Signature 
Profile
 
 
Posted: 22 October 2008 08:45 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  14
Joined  2007-12-12

Awesome! I’ll be installing this pronto. smile Much grass!

Profile
 
 
Posted: 22 October 2008 03:06 PM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  14
Joined  2007-12-12

Bad news - the update doesn’t appear to have fixed the problem. I still get a “Disallowed Key Characters” error.

I really do think it’s a .htaccess conflict, specifically with the url_rewrite portion that removes the index.php. Can we troubleshoot this together? I can be available on virtually any IM program…

Profile
 
 
Posted: 24 October 2008 07:46 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18

I’m not sure why we just don’t implement this feature… though it get’s a little more difficult with foreign characters.... that’s probably why.

Perhaps we can have it strip certain “common” characters… I’ll add that to the list smile

 Signature 
Profile
 
 
Posted: 24 October 2008 07:50 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  14
Joined  2007-12-12
Pie Man - 24 October 2008 07:46 AM

I’m not sure why we just don’t implement this feature… though it get’s a little more difficult with foreign characters.... that’s probably why.

Perhaps we can have it strip certain “common” characters… I’ll add that to the list smile

Which feature are you talking about - supporting characters like ‘, “, etc, or adding in some type of “Tag URL Titles”?

Profile
 
 
Posted: 24 October 2008 07:52 AM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3356
Joined  2006-10-18
Sandwich - 24 October 2008 07:50 AM

Which feature are you talking about - supporting characters like ‘, “, etc, or adding in some type of “Tag URL Titles”?

Semi-URL Titles… not really though… just have it strip out quotations, quotes, etc smile
Supporting those characters would theoretically not work…

 Signature 
Profile
 
 
Posted: 28 October 2008 02:50 PM   [ Ignore ]   [ # 12 ]
Newbie
Avatar
Rank
Total Posts:  1
Joined  2006-04-07

Pie Man, I’d be happy to work with Solspace for a proper way around this.

 Signature 

CTO, EllisLab, Inc.

Profile