Last modified: 2012-03-26 17:33:50 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 T37450, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35450 - &action=raw&gen=js and gen=js output empty page; do not work as documented
&action=raw&gen=js and gen=js output empty page; do not work as documented
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-24 07:58 UTC by T. Gries
Modified: 2012-03-26 17:33 UTC (History)
1 user (show)

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


Attachments

Description T. Gries 2012-03-24 07:58:42 UTC
Page https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw describes &action=raw&gen=js parameters.

&action=raw&gen=js and gen=css do not work for me and generate empty pages.

Examples:
* works: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&
action=raw 
* does not work: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw&gen=js

perhaps an issue of ResourceLoader ?
Comment 2 Alexandre Emsenhuber [IAlex] 2012-03-26 09:15:53 UTC
gen parameter to action=raw now always returns an empty page since it is superseded by ResourceLoader. Please note the your example link does not achieve what you want since the gen parameter was overriding the title parameter, i.e. it always returned the same content whatever the page was: http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_16/phase3/includes/RawPage.php?view=markup#l160
Comment 3 T. Gries 2012-03-26 16:19:58 UTC
(In reply to comment #2)
> gen parameter to action=raw now always returns an empty page since it is
> superseded by ResourceLoader. Please note the your example link does not
> achieve what you want since the gen parameter was overriding the title
> parameter, i.e. it always returned the same content whatever the page was:
> http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_16/phase3/includes/RawPage.php?view=markup#l160

In this case, can you please update (correct) the documentation page https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Raw accordingly ?

Will it be possible to render a js or css page as it was possible before ?
Comment 4 Alexandre Emsenhuber [IAlex] 2012-03-26 17:33:50 UTC
I updated the documentation. What you want is the "ctype" parameter and its behaviour did not change: https://en.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw&ctype=text/javascript

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


Navigation
Links