Attempting to login to a site fails with msg "XML: Missing System ID"

Bug #616426 reported by Alex Kozak
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mediawiki-el
Incomplete
High
Unassigned

Bug Description

I successfully added a site to the alist but after trying to connect with mediawiki-site, and after entering the password, it fails to connect with the message "XML: Missing System ID".

The site is running 1.15.1.

Revision history for this message
session13 (session13) wrote :

I've the same problem but when connecting to local hosted site. Remote sites are working correctly.

Revision history for this message
Alex Kozak (akozak-creativecommons) wrote :

The full error in messages is:
xml-parse-dtd: XML: Missing System ID

Revision history for this message
session13 (session13) wrote :

I have two addresses to the same site: lowiki.pl and lowiki.co.cc. The first one generates `XML: Missing System ID' but the second works just fine.

Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

I've seen the "Missing System ID" error when I didn't have the wiki URL configured correctly. The error occurs because mediawiki.el isn't seeing the expected XML response from the API but is getting some error page instead.

Check the URL when you are editing a wiki page through the wiki and make sure the URL you have configured matches.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

This is really a matter of getting better error messages.

Changed in mediawiki-el:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

I've just added slash («/») to the end of an URL and then logged in successfully.

E.g.: https://example.com/wiki →xml-parse-dtd: XML: Missing System ID
https://example.com/wiki/ (note the trailing slash) → success

It's annoying to have such issues, though.

Revision history for this message
tahnok (tahnok881) wrote :

This was an issue for me when the api.php was located at http://www.domain.com/api.php instead of http://domain.com/api.php but the latter would redirect to the former.

Revision history for this message
mar ber (bermar81) wrote :

I also get "XML: Missing System ID" error. It is quite strage because I get the error when I connect from my home adsl, but when I connenct form the public wi-fi network outside my home there is no problem. The notebook and Emacs are exactly the same, the only thing that change is the connection. The final '/' (slash) is present.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

could you comment out the (kill-buffer ...) lines, re-eval the file and then see what the remaining buffers titled ' *http...' have in them?

It sounds like you're being asked for a password or something from your wireless.

Revision history for this message
mar ber (bermar81) wrote :

I commented the (kill-buffer ...) lines but there is no buffers titled ' *http...'.
I get XML:Missing... from my house via wifi and via ethernet. I get it
with my mobile phone modem via 3G, but I don't know why when I connect from
the public wifi network in the studing room at university there is no problem.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

So that I can better help, could you give me the URL for the wiki you're trying to connect to? I still suspect your home connection is asking for a password.

Revision history for this message
mar ber (bermar81) wrote :

It's a personal wiki and i admi it. The URL is in the form like:
http://www.mydomain.com/~myusername/wiki/

Revision history for this message
mar ber (bermar81) wrote :

The problem is not only at my home but also when I connect via 3G, my OS is Windows 7.

Contacting host: myhost.com:80
Reading [text/html; charset=iso-8859-1]... 411 bytes of 410 bytes (100%)
Reading... done.
Loading xml...
Loading subst-ksc...done
Loading subst-gb2312...done
Loading subst-big5...done
Loading subst-jis...done
Loading xml...done
xml-parse-dtd: XML: Missing System ID

Revision history for this message
mar ber (bermar81) wrote :

When I get no error I have this messages

Posting to: http://myhost.com/~myuser/wiki/api.php
Contacting host: myhost.com:80
Reading [text/xml; charset=utf-8]... 102 bytes of 101 bytes (101%)
Loading xml...
Loading subst-ksc...done
Loading subst-gb2312...done
Loading subst-big5...done
Loading subst-jis...done
Loading xml...done
Posting to: http://marcobertola.it/~mbertola/wiki/api.php

Do you see the different charset?? Why? Could be this the problem?

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

> Do you see the different charset?? Why? Could be this the problem?

Yes. This is almost definitely the problem. Your router at home probably uses some sort of web authentication and Emacs isn't giving it the cookies it wants to use to authenticate.

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

Copy-paste the following into an empty buffer and then "M-x eval-buffer":

(progn (goto-char (point-max))
       (print (url-http-get (url-generic-parse-url
                             "http://marcobertola.it/~mbertola/wiki/api.php")) 'insert))

You should see MediaWiki's API.php output where mediawiki.el works. At home, you will probably see the html for a prompt. If you send me that, I can probably help you come up with some code to work around it.

Revision history for this message
mar ber (bermar81) wrote :

I get the output from the api.php from both home connection and the university network.

Revision history for this message
mar ber (bermar81) wrote :

Sorry, could you remove the URL of my wiki from my previous post?

Revision history for this message
Mark A. Hershberger (hexmode) wrote :

I can't edit comments on bugs.

Could you download 2.2.4 and turn on debugging? After that, tell me is in the " *http ..." buffers (where ... will the rest of the url for your site).

Changed in mediawiki-el:
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.