https://bugzilla.wikimedia.org/show_bug.cgi?id=57701

       Web browser: ---
            Bug ID: 57701
           Summary: puppet config of Parsoid localsettings breaks in
                    labs-vagrant
           Product: MediaWiki-Vagrant
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Parsoid doesn't work when you add the visualeditor role in Labs-Vagrant setup,
clients get 404 errors. After tweaking parsoid to log the actual error (bug
57694), /var/log/upstart/parsoid.log contains

  Stack trace: DoesNotExistError: Page Fetch failure for null : Error: Invalid
URI
 
"undef/w/api.php?format=json&action=query&meta=siteinfo&siprop=namespaces%7Cnamespacealiases%7Cmagicwords%7Cfunctionhooks%7Cextensiontags%7Cgeneral%7Cinterwikimap%7Clanguages%7Cprotocols"

Obviously undef/w/api.php is going to give 404.

The bad URL path arises because puppet/manifests/roles.pp sets $server_url to
'undef' if forwarded_port isn't set, and it somehow isn't set in labs-vagrant.
puppet/modules/mediawiki/templates/parsoid.localsettings.js.erb propagates this
to /srv/parsoid/js/api/localsettings.js which contains 
  parsoidConfig.setInterwiki( 'localhost', 'undef/w/api.php' )

(Erik Bernhardson figured all this out!)

One fix is to not set $server_url to undef. Patch coming.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to