Last modified: 2013-10-23 17:38:29 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 T56872, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54872 - SMW_refreshData.php: no permission vor *.ogg
SMW_refreshData.php: no permission vor *.ogg
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Linux
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-02 13:30 UTC by heinen321
Modified: 2013-10-23 17:38 UTC (History)
5 users (show)

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


Attachments

Description heinen321 2013-10-02 13:30:34 UTC
MediaWiki 1.21.1
Semantic Bundle (Version 1.8.0.5) had the same Problem with Version 1.8.0.4


At Special:SMWAdmin I 
1. initialized the tables
2. reorganiced the database

Then
php SMW_refreshData.php -v -tp 
php SMW_refreshData.php -v -s    0 -e  1000
php SMW_refreshData.php -v -s 1001 -e  2000
php SMW_refreshData.php -v -s 2001 -e  3000

It stops running with the following messages:


(0) Processing ID 2520 ...
You need read permission to use this module
Backtrace:
#0 /var/www/koppwiki/includes/api/ApiBase.php(1404): ApiBase->dieUsage('You need read p...', 'readapidenied')
#1 /var/www/koppwiki/includes/api/ApiMain.php(780): ApiBase->dieUsageMsg('readrequired')
#2 /var/www/koppwiki/includes/api/ApiMain.php(833): ApiMain->checkExecutePermissions(Object(ApiQuery))
#3 /var/www/koppwiki/includes/api/ApiMain.php(349): ApiMain->executeAction()
#4 /var/www/koppwiki/extensions/TimedMediaHandler/handlers/TextHandler/TextHandler.php(173): ApiMain->execute()
#5 /var/www/koppwiki/extensions/TimedMediaHandler/handlers/TextHandler/TextHandler.php(63): TextHandler->getLocalTextSources()
#6 /var/www/koppwiki/extensions/TimedMediaHandler/TimedMediaTransformOutput.php(236): TextHandler->getTracks()
#7 /var/www/koppwiki/extensions/TimedMediaHandler/TimedMediaTransformOutput.php(126): TimedMediaTransformOutput->getHtmlMediaTagOutput()
#8 /var/www/koppwiki/includes/ImageGallery.php(325): TimedMediaTransformOutput->toHtml(Array)
#9 /var/www/koppwiki/includes/parser/Parser.php(5075): ImageGallery->toHTML()
#10 /var/www/koppwiki/includes/parser/CoreTagHooks.php(120): Parser->renderImageGallery(':Datei:01intro....', Array)
#11 [internal function]: CoreTagHooks::gallery(':Datei:01intro....', Array, Object(Parser), Object(PPFrame_DOM))
#12 /var/www/koppwiki/includes/parser/Parser.php(3916): call_user_func_array(Array, Array)
#13 /var/www/koppwiki/includes/parser/Preprocessor_DOM.php(1144): Parser->extensionSubstitution(Array, Object(PPFrame_DOM))
#14 /var/www/koppwiki/includes/parser/Parser.php(3073): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#15 /var/www/koppwiki/includes/parser/Parser.php(1153): Parser->replaceVariables('{{Extension DPL...')
#16 /var/www/koppwiki/includes/parser/Parser.php(543): Parser->internalParse('{{Extension DPL...', false, false)
#17 /var/www/koppwiki/extensions/DynamicPageList/DPLSetup.php(1333): Parser->recursiveTagParse('{{Extension DPL...')
#18 /var/www/koppwiki/extensions/DynamicPageList/DPLSetup.php(1308): ExtDynamicPageList::executeTag('?  namespace = ...', Array, Object(Parser))
#19 [internal function]: ExtDynamicPageList::dplTag('?  namespace = ...', Array, Object(Parser), Object(PPFrame_DOM))
#20 /var/www/koppwiki/includes/parser/Parser.php(3916): call_user_func_array(Array, Array)
#21 /var/www/koppwiki/includes/parser/Preprocessor_DOM.php(1144): Parser->extensionSubstitution(Array, Object(PPFrame_DOM))
#22 /var/www/koppwiki/includes/parser/Parser.php(3073): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#23 /var/www/koppwiki/includes/parser/Parser.php(1153): Parser->replaceVariables('{{DPL-Test |?  ...')
#24 /var/www/koppwiki/includes/parser/Parser.php(383): Parser->internalParse('{{DPL-Test |?  ...')
#25 /var/www/koppwiki/extensions/SemanticMediaWiki/includes/jobs/SMW_UpdateJob.php(59): Parser->parse('{{DPL-Test |?  ...', Object(Title), Object(ParserOptions), true, true, 24768)
#26 /var/www/koppwiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_SetupHandlers.php(454): SMWUpdateJob->run()
#27 /var/www/koppwiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(404): SMWSQLStore3SetupHandlers->refreshData(2520, 1, false, false)
#28 /var/www/koppwiki/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php(147): SMWSQLStore3->refreshData(2520, 1, false, false)
#29 {main}



What I tried to find the problem:
==================================
I put a "print_r( $module );"  into
/var/www/koppwiki/includes/api/ApiMain.php

and found in the result-array that the problem is a *.ogg-file I have uploaded. 
The permissions are the same as with lots of *.jpgs I have uploaded. And I have enabled *.ogg in the mediawiki-configfile.
Comment 1 MWJames 2013-10-23 17:38:29 UTC
This issue is caused by the TimedMediaHandler as seen in the "dump" and is only caught by SMW_refreshData as it relies on the same Parser object as the  TimedMediaHandler extension.

A fix (namely the support for ogg in TimedMediaHandler) needs to be applied to TimedMediaHandler which has nothing to do with SMW.

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


Navigation
Links