Comment 8 for bug 312456

Revision history for this message
Spiro Harvey (spiro.harvey) wrote :

Hasn't made its way to Sid, which uses pastebinit-0.11-2.

The patch I sent in fixes your problem. The code is trying to parse the xml file as a string, rather than trying to parse the data it extracted from the xml file.

There are two important variables. One is 'configfile' which is the actual xml pathname. The other is 'configtext' which is where the contents of the configfile is read into.

the code does an

f=open(configfile)

then

configtext=f.read()

so here we have configfile which probably contains something like "/home/user/.pastebinit.xml" and configtext which should be something like:
"<pastebinit>
    <pastebin>http://pastebin.ca</pastebin>
    <author>ml</author>
    <jabberid><email address hidden></jabberid>
    <format>text</format>
</pastebinit>"

the broken version of the code then checks to see if a configfile exists, then if it does, it tries to read CONFIGFILE, but it should be trying to read configTEXT.

I think once this is fixed 'upstream' not in the distros, then it will make its way into the distros.

I will email this page to the developers in case they're not aware of it.