Last modified: 2011-03-13 18:05:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19024, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17024 - Get value of $wgLegalTitleChars through the API
Get value of $wgLegalTitleChars through the API
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.13.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on: 17027
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-14 20:29 UTC by Sam Reed (reedy)
Modified: 2011-03-13 18:05 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2009-01-14 20:29:31 UTC
Would it be possible for an entry in meta=siteinfo to be able to get the value of $wgLegalTitleChars ?

Thanks
Comment 1 Sam Reed (reedy) 2009-01-14 22:07:53 UTC
Would be "fixed" when 17027 is done
Comment 2 Sam Reed (reedy) 2009-01-21 11:34:58 UTC
Reopening as Bug 17027 "Output LocalSettings.php Variables via API" has been reverted as wontfix.

17025 is still there, just with a few tweaks to be added..

Can this be implemented seperately like 17025 was?


Thanks!
Comment 3 Roan Kattouw 2009-01-24 13:16:41 UTC
Fixed in r46138
Comment 4 Brion Vibber 2009-01-26 23:03:08 UTC
This is too tightly coupled to internal implementation behavior for a stable API. Note that the value of $wgLegalTitleChars is not sufficient to identify which titles are legal. I recommend removing this and resolving WONTFIX.

What's an example of an actual problem this is intended to solve? Is there a better way to solve it, like submitting a potential title for normalization and validity checks?
Comment 5 Sam Reed (reedy) 2009-01-26 23:24:00 UTC
The intention is/was to use it in a Regex in AutoWikiBrowser to be used in a regex to help identify images (so hence wanting it was such), so they can be masked in wikitext during processing

Obviously, we can just use the default hardcoded, but then that could cause problems if people have changed it (with making it variablised for people to change, it means people *could* change it)
Comment 6 Roan Kattouw 2009-01-27 12:52:48 UTC
If you're just trying to validate one or more titles (i.e. check whether they're valid or not), use action=query&titles=Foo|Bar|Baz . I'll revert and WONTFIX in a minute.
Comment 7 Sam Reed (reedy) 2009-01-27 13:03:52 UTC
Not exactly..

Just trying to think how to explain it better
Comment 8 Roan Kattouw 2009-01-27 13:11:19 UTC
(In reply to comment #6)
> If you're just trying to validate one or more titles (i.e. check whether
> they're valid or not), use action=query&titles=Foo|Bar|Baz . I'll revert and
> WONTFIX in a minute.
> 

Reverted in r46337, closing as WONTFIX. Feel free to REOPEN or file a new bug if you have a use case that isn't covered by the current possibilities.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links