[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2014-07-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Gerrit Notification Bot gerritad...@wikimedia.org changed:

   What|Removed |Added

 Status|NEW |PATCH_TO_REVIEW

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2014-07-11 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

--- Comment #16 from Gerrit Notification Bot gerritad...@wikimedia.org ---
Change 145724 had a related patch set uploaded by Brian Wolff:
Have Title::makeTitleSafe decode html entities.

https://gerrit.wikimedia.org/r/145724

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2014-02-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

--- Comment #15 from Philippe Verdy verd...@wanadoo.fr ---
Workaround:

* filter the fiven file name / page name / category name, containing HTML
  entities as returned by various parser functions
  (like lc:, uc:, #if:, #switch:...),
  through #titleparts to convert back these HTML entities to plain characters

* this returned value can be passed to parsers functions that do not like
  these HTML entities:
  PAGESINCATEGORY, FILEPATH, #ifexist...


The HTML entities we need to handle are notably those characters:

  '  

which are valid in page names (the  and  characters are not valid in
pagenames, they will remain encoded after calling #titleparts).


For details about te various encodings used in page names, see

  [[mw:Manual:PAGENAMEE encoding]]

which details how characters may get encoded.
This covers the full ASCII set, and the first printable non-ASCII characters
(tested with UTF-8 assumed for their plain-text encoding).
This also covers some other contextual changes that may occur for some
characters which are not encoded except in leading positions where they may be
changed, or dropped, as well as those few charaters that get transformed within
specific subsequences anywhere in the string (such as the slash and periods).

But I agree that functions like PAGESINCATEGORY, FILEPATH... should properly
decode these HTML entities (and notably the 3 characters above; the most
frequent one encountered being the ASCII apostrophe-quote).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2014-02-14 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Bug 16474 depends on bug 35746, which changed state.

Bug 35746 Summary: {{PAGENAME}} must not escape special chars, otherwise it 
makes {{#ifeq:}} unusable
https://bugzilla.wikimedia.org/show_bug.cgi?id=35746

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |WONTFIX

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2012-05-14 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Bug 16474 depends on bug 14779, which changed state.

Bug 14779 Summary: {{#ifexist}} does not recognise URL encoded titles
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779

   What|Old Value   |New Value

 Status|REOPENED|RESOLVED
 Resolution||INVALID

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2012-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Bug 16474 depends on bug 35746, which changed state.

Bug 35746 Summary: {{PAGENAME}} must not escape special chars, otherwise it 
makes {{#ifeq:}} unusable
https://bugzilla.wikimedia.org/show_bug.cgi?id=35746

   What|Old Value   |New Value

 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2012-04-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Niklas Laxström niklas.laxst...@gmail.com changed:

   What|Removed |Added

 Depends on||35746

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2012-04-06 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Bug 16474 depends on bug 35746, which changed state.

Bug 35746 Summary: {{PAGENAME}} must not escape special chars, otherwise it 
makes {{#ifeq:}} unusable
https://bugzilla.wikimedia.org/show_bug.cgi?id=35746

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2012-04-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Mark A. Hershberger m...@everybody.org changed:

   What|Removed |Added

 CC||m...@everybody.org

--- Comment #14 from Mark A. Hershberger m...@everybody.org 2012-04-04 
15:09:27 UTC ---
See also bug 35628

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-10-27 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

--- Comment #13 from Umherirrender umherirrender_de...@web.de 2010-10-27 
13:20:08 UTC ---
(In reply to comment #11)
 ... ([wfFindFile works] with or without File:-prefix). ...

reported as bug 25670

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-10-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

--- Comment #10 from Umherirrender umherirrender_de...@web.de 2010-10-26 
19:21:15 UTC ---
(In reply to comment #9)
 I'm not sure whether it was already posted, but 
 {{NAMESPACE:xyz}} and
 {{PAGENAME:xyz}}
 are also not working with ,  or their html-escaped equivalents amp;lt;
 and amp;gt;. The quote characters (,') are OK in here.
 I think it belongs to this bug, please fix me.

 and  are not allow inside titles, see [[mw:Manual:$wgLegalTitleChars]],
so there are cannot work with NAMESPACE or PAGENAME.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-10-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

--- Comment #11 from Umherirrender umherirrender_de...@web.de 2010-10-26 
19:35:05 UTC ---
(In reply to comment #4)
 Looks like the same base problem as bug 14779...

No, using $title = Title::newFromText( $name ); and give the $title to
wfFindFile works (with or without File:-prefix). But that doesnot work with
urlencode title, that is bug 14779.

wfFindFile is using Title::makeTitleSafe, which use Tilte::makeTitle for the
mDbkeyform. Title::newFromText use Sanitizer::decodeCharReferencesAndNormalize
and that normalize the quot; amp; #39;.

It looks like, newFromText should used for all Titles from Wikitext and
makeTitleSafe should used for form given titles. So this parser function use
the wrong method.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-10-26 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

--- Comment #12 from Umherirrender umherirrender_de...@web.de 2010-10-26 
19:37:44 UTC ---
(In reply to comment #6)
 Related issue:
 {{PAGESINCATEGORY:{{PAGENAME doesn't work on categories with a '

PAGESINCATEGORY used Category::newFromName which use Title::makeTitleSafe -
see comment 11

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-10-15 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

✓ andbe...@web.de changed:

   What|Removed |Added

 CC||andbe...@web.de

--- Comment #9 from ✓ andbe...@web.de 2010-10-15 16:23:48 UTC ---
I'm not sure whether it was already posted, but 
{{NAMESPACE:xyz}} and
{{PAGENAME:xyz}}
are also not working with ,  or their html-escaped equivalents amp;lt;
and amp;gt;. The quote characters (,') are OK in here.
I think it belongs to this bug, please fix me.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-08-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

duplicate...@googlemail.com changed:

   What|Removed |Added

 CC||verd...@wanadoo.fr

--- Comment #8 from duplicate...@googlemail.com 2010-08-30 19:46:49 UTC ---
*** Bug 24938 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-04-21 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Umherirrender umherirrender_de...@web.de changed:

   What|Removed |Added

 CC||mict...@gmail.com

--- Comment #7 from Umherirrender umherirrender_de...@web.de 2010-04-21 
18:23:10 UTC ---
*** Bug 23253 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-03-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Conrad Irwin conrad.ir...@gmail.com changed:

   What|Removed |Added

 Depends on||22880

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-03-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

User:Docu test5...@myway.com changed:

   What|Removed |Added

 CC||test5...@myway.com

--- Comment #6 from User:Docu test5...@myway.com 2010-03-11 07:19:13 UTC ---
Related issue:

{{PAGESINCATEGORY:{{PAGENAME doesn't work on categories with a '


Sample:

http://commons.wikimedia.org/w/index.php?title=Category:Kao_Ch%27i-p%27eioldid=36348147


Discussion on Commons Village Pump:

http://commons.wikimedia.org/w/index.php?title=Commons:Village_pumpoldid=36347737#Unexplainable_behavior_of_.7B.7B.23ifeq:_.7D.7D

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-02-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Bug 16474 depends on bug 14779, which changed state.

Bug 14779 Summary: {{#ifexist}} does not recognise URL encoded filenames
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779

   What|Old Value   |New Value

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2010-02-13 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474

Bug 16474 depends on bug 14779, which changed state.

Bug 14779 Summary: {{#ifexist}} does not recognise URL encoded filenames
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||FIXED

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16474] {{FILEPATH:{{PAGENAME}} }} doesn't work for filenames containing characters that get escaped to HTML entities

2009-10-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16474


Rich Farmbrough rich...@farmbrough.co.uk changed:

   What|Removed |Added

 CC||rich...@farmbrough.co.uk




--- Comment #5 from Rich Farmbrough rich...@farmbrough.co.uk  2009-10-02 
18:28:07 UTC ---
Also seems to apply to the output of other magic Words, even simple ones like
LC.  We risk getting into the situation where people are relying on the broken
behaviour, and fixing it will then break stuff.  


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l