Last modified: 2013-10-04 08:36:14 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 T42052, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40052 - exturlusage provides no way to exclude protocol-relative URLs from output
exturlusage provides no way to exclude protocol-relative URLs from output
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.20.x
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/w/api.php?ac...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-06 12:38 UTC by Nemo
Modified: 2013-10-04 08:36 UTC (History)
6 users (show)

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


Attachments

Description Nemo 2012-09-06 12:38:22 UTC
Whether euprotocol=https or euprotocol=http is selected, protocol-relative URLs are always included in output, see example:
      <eu pageid="14784857" ns="3" title="User talk:Emijrp" url="//translatewiki.net/wiki/Special:AdvancedTranslate?module=words" />

This is a problem for software not supporting them (see e.g. https://code.google.com/p/wiki-java/issues/detail?id=16 ) and I think it would make sense to provide the option to have them converted to the requested protocol; or maybe this is just their problem and this is a WONTFIX, I don't know.
Comment 1 Umherirrender 2012-09-07 18:32:09 UTC
Found in code:

We *could* run this through wfExpandUrl() but I think it's better to output the link verbatim, even if it's protocol-relative --Roan

With Gerrit change #23095 I have add a new parameter "expandurl" to list=exturlusage which will expand protocol-relative urls
Comment 2 Umherirrender 2012-10-12 19:08:51 UTC
successfully merged
Comment 3 Strainu 2013-10-03 08:19:59 UTC
(In reply to comment #1)
> With Gerrit change #23095 I have add a new parameter "expandurl" to
> list=exturlusage
> which will expand protocol-relative urls

Could you please document it at https://www.mediawiki.org/wiki/API:Exturlusage ?
Comment 4 Umherirrender 2013-10-03 18:22:39 UTC
(In reply to comment #3)

> Could you please document it at
> https://www.mediawiki.org/wiki/API:Exturlusage?

It's a wiki!!!
Comment 5 Strainu 2013-10-04 08:36:14 UTC
(In reply to comment #4)
> It's a wiki!!!

Yes, it is. That doesn't make it less optimal for the developer to document his work. :)

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


Navigation
Links