Modify ↓
Ticket #1067 (closed defect: fixed)
bcfg2-repo-validate throws up on missing aligator
Reported by: | rcuza | Owned by: | https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
On the malformed attached Metadata/groups.xml file, bcfg2.repo.validate throws up the following error:
# bcfg2-repo-validate Traceback (most recent call last): File "/usr/sbin/bcfg2-repo-validate", line 40, in <module> xdata = lxml.etree.parse("%s/Metadata/groups.xml" % repo) File "lxml.etree.pyx", line 2706, in lxml.etree.parse (src/lxml/lxml.etree.c:49958) File "parser.pxi", line 1500, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71797) File "parser.pxi", line 1529, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:72080) File "parser.pxi", line 1429, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:71175) File "parser.pxi", line 975, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:68173) File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:64257) File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:65178) File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64521) lxml.etree.XMLSyntaxError: expected '>', line 13, column 1
The expected behaviour is for bcfg2-repo-validate to say "Yo phat fingers, you are missing a '>' on line 12. What were you thinking?"
Attachments
Change History
Changed 12 years ago by rcuza
- Attachment groups.xml added
comment:1 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
- Owner changed from desai to https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
- Status changed from new to accepted
Note: See
TracTickets for help on using
tickets.
Malformed Metadata/groups.xml file