EPrints Technical Mailing List Archive

Message: #02002


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: [FIX] missing entities


Incidentally, I can see that our phrase files all start with:

    <!DOCTYPE phrases SYSTEM "entities.dtd">
    
    <epp:phrases xmlns="http://www.w3.org/1999/xhtml";
            xmlns:epp="http://eprints.org/ep3/phrase";
            xmlns:epc="http://eprints.org/ep3/control";>
    ...

Can anyone briefly explain to me how the XML engine knows (or rather, _should_ know) that the "entities.dtd" actually refers to the file in eprints/lib/ ?  Should it be changed to an absolute path, or even a file:// URL?

-- 
Matthew Kerwin  |  QUT Library eServices  |  ph 3138 3910  |  matthew.kerwin@qut.edu.au

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Tim Brody
Sent: Wednesday, 5 June 2013 18:22
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: [FIX] missing entities

Hi,

It looks like Ubuntu 13 has replicated the bug from RHEL *sigh*.

The next stable 3.3 will remove entities from EPrints, which works around this bug.

/Tim.

On Mon, 2013-06-03 at 14:27 +0100, Graham Triggs wrote:
> Hi Tim,
> 
> I use Ubuntu in a VirtualBox for dev, and this cropped up at some 
> point after I upgraded to 13.04. All of my messages disappeared, and I 
> eventually went in and replaced the &nbsp; !
> 
> G
> 
> -----Original Message-----
> From: eprints-tech-bounces@ecs.soton.ac.uk 
> [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Tim Brody
> Sent: 03 June 2013 12:57
> To: eprints-tech@ecs.soton.ac.uk
> Subject: [EP-tech] Re: [FIX] missing entities
> 
> Hi Graham,
> 
> That's news to me that Ubuntu has a problem with this? The specific 
> bug is a regression in a RedHat patch - which has never appeared in 
> the core
> libxml2 library.
> 
> If you're thinking about "xmllint" you need to provide a path to the entities file *and* enable external file loading.
> 
> --
> All the best,
> Tim.
> 
> On Mon, 2013-06-03 at 09:30 +0100, Graham Triggs wrote:
> > Tim,
> > 
> > Ubuntu has also been caught out by the same issue.
> > 
> > The real issue here is that &nbsp; is not a defined entity reference 
> > in XML. LibXML is doing the correct thing when it refuses to read 
> > the XML file.
> > 
> > The phrases file should be updated to either replace the &nbsp; 
> > references with &#160; or an entity declaration needs to be added to 
> > the file:
> > 
> > <!ENTITY nbsp   "&#160;">
> > 
> > 
> > Regards,
> > G
> > 
> > -----Original Message-----
> > From: eprints-tech-bounces@ecs.soton.ac.uk
> > [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Tim Brody
> > Sent: 31 May 2013 11:22
> > To: eprints-tech@ecs.soton.ac.uk
> > Subject: [EP-tech] [FIX] missing entities
> > 
> > Hi All,
> > 
> > For those of you running RHEL 6 I've uploaded patched libxml2 
> > packages
> > here:
> > http://files.eprints.org/851/
> > 
> > Based on a patch supplied to the bugzilla ticket:
> > https://bugzilla.redhat.com/show_bug.cgi?id=863166
> > 
> > Hopefully RHEL will release an official update soon ...
> > 
> 
> 
> 
> *** Options: 
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/