Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137202 - archives.gentoo.org: Content-Length: 1
Summary: archives.gentoo.org: Content-Length: 1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
: 207273 211194 262788 (view as bug list)
Depends on: 161855
Blocks:
  Show dependency tree
 
Reported: 2006-06-18 13:07 UTC by Jan Kundrát (RETIRED)
Modified: 2012-10-25 08:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát (RETIRED) gentoo-dev 2006-06-18 13:07:47 UTC
Hi folks,

jkt@slon ~ $ curl -v http://archives.gentoo.org/gentoo-doc-cvs/msg_01182.xml 2>&1 >/dev/null | grep Content-Length
< Content-Length: 1

(Message number randomly picked up, haven't tried any other messages nor the other lists yet.)
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2006-06-18 14:32:44 UTC
So, I can get the source XML, that's good. There are some errors, though:

a) Root element name doesn't match the DTD identifier (ie. your root element is <mainpage> while the DTD definition talks about <guide>)
b) id="listarchive" isn't allowed (see /usr/portage/metadata/dtd/guide.dtd)
c) Attribute "plain" for <pre> element isn't defined
d) Using <foo bar="true"> isn't a standard approach, it's recommended to use <foo bar="bar"> to indicate that the option "bar" is present (otherwise just omit the entire attribute), iirc.
e) You fail to properly escape all the entities ("&quot" isn't a valid entity reference, "&quot;" is) - /gentoo-admin/msg_00216.xml, line 108
f) The generated XML isn't valid (missing "caption" attribute for the <pre> tag, <uri> isn't allowed inside <pre> and a lot of other errors as shown by `xmllint --noout --valid $file`.

If you're looking for our XSLT wizzard, it's neysx. Some help might be provided at #gentoo-doc as we're probably the "mainstream producers" of XML content for webnodes.

HTH
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-13 21:21:39 UTC
solar: archives is yours, could you please look at this old bug?
Comment 3 solar (RETIRED) gentoo-dev 2007-05-13 21:50:31 UTC
chizu is the owner of that code. He is better suited to review his code vs me. 
I've never touched it before. He can usually be reached via irc #osuosl if 
not responding to email.
Comment 4 Trevor Hardcastle 2007-05-13 21:52:55 UTC
The content length problem is worked around locally, waiting for bug 161855 or upstream Mhonarc to fix it in the package. Some of the XML errors have been fixed, too (been a while, I don't remember exactly which ones are still an issue).
Comment 5 Xavier Neys (RETIRED) gentoo-dev 2008-01-24 11:42:23 UTC
*** Bug 207273 has been marked as a duplicate of this bug. ***
Comment 6 Xavier Neys (RETIRED) gentoo-dev 2008-02-23 22:49:48 UTC
*** Bug 211194 has been marked as a duplicate of this bug. ***
Comment 7 Xavier Neys (RETIRED) gentoo-dev 2009-03-17 11:31:41 UTC
*** Bug 262788 has been marked as a duplicate of this bug. ***
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-06-17 01:44:57 UTC
This needs to be retested after I regenerate all the XML again.
Comment 9 Jan Kundrát (RETIRED) gentoo-dev 2012-10-25 08:21:59 UTC
I'm no longer hitting this problem -> closing.