On Wed, 22 Oct 2008, Asheesh Laroia wrote:

The same page appears at http://wiki.creativecommons.org/Worm_Consortium_%E2%80%93_LumbriBASE and http://learn.creativecommons.org/community/Worm_Consortium_%E2%80%93_LumbriBASE . Both wikis use the same rewrite rules (listed at the end of this mail)..

If you click from wiki-dot on "post-secondary education", you follow a link to http://wiki.creativecommons.org/Special:SearchByProperty/Tag/post-secondary_education . Going there, one is surprised to see 'A list of all pages that have property “Tag” with value “post%secondary education', which needless to say is an empty list. (The same can be seen on the learn-dot link.)

The behavior is different (but also wrong) with the wiki running newer software. The link goes to http://learn.creativecommons.org/community/Special:SearchByProperty/Tag/post-secondary%2Beducation (%2B is +). MediaWiki redirects me to http://learn.creativecommons.org/community/Special:SearchByProperty/Tag/post-secondary_education , and I am told the query was "post%secondary_education" in the resulting rendered page. Again, there are no results.

I can reproduce this percent encoding bug on the SMW sandbox by simply going to http://sandbox.semantic-mediawiki.org/wiki/Special:SearchByProperty/Your-Mom/Wears-Polyester .

Instead of your hyphen mom, we see your percent mom. Links like this can be generated by wiki markup like this:
[[Special:SearchByProperty/Your-Mom/Wears Polyester]]
which I have put on my user page <http://sandbox.semantic-mediawiki.org/wiki/User:Paulproteus>. Am I using Special:SearchByProperty wrong, or is this a bug?

(From the SMW-user list discussion where I began this thread, I believe it is a bug, and that the behavior has changed across releases. I wrote other attempts at encoding this query on my user page which result (as they should) in red links to error pages.)

Of note, http://sandbox.semantic-mediawiki.org/index.php?title=Special:SearchByProperty/Your-Mom/Wears_Polyester gives the same problem; in principle, this is not really a mod_rewrite issue.

-- Asheesh.

--
INSIDE, I have the same personality disorder as LUCY RICARDO!!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to