Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199350

Summary: perl_ldap -U produces userinfo.xml parts in outdated schema
Product: Gentoo Infrastructure Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: Developer account issuesAssignee: Gentoo Infrastructure <infra-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: phreak, recruiters
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 196558    
Bug Blocks:    

Description Petteri Räty (RETIRED) gentoo-dev 2007-11-16 12:35:28 UTC
output sanitized

  <user username="jsbronder">
    <realname fullname="Justin Bronder">
      <firstname>Justin</firstname>
      <familyname>Bronder</familyname>
    </realname>
    <pgpkey>0x4D7043C9</pgpkey>
    <email role="gentoo">jsbronder@gentoo.org</email>
    <joined>XXXXXX</joined>
    <birthday/>
    <roles>Package maintainer</roles>
    <location>Brighton, MA, USA</location>
  </user>

Gives:

betelgeuse@pena /mnt/checkouts/gentoo/xml/htdocs/proj/en/devrel/roll-call $ cvs commit -m "Add jsbronder (bug #188400)."

Gentoo XML-QA-checker called.  In case of troubles, contact neysx@gentoo.org or pylon@gentoo.org

userinfo.xml:3240: element email: validity error : No declaration for attribute role of element email
    <email role="gentoo">jsbronder@gentoo.org</email>
                        ^
userinfo.xml:3242: element birthday: validity error : No declaration for element birthday
    <birthday/>
               ^
userinfo.xml:3245: element user: validity error : Element user content does not follow the DTD, expecting (realname , pgpkey , email+ , joined , status? , roles? , location?), got (realname pgpkey email joined birthday roles location )
  </user>
         ^
XML-Checking userinfo.xml ... [ failed ]

cvs commit: Pre-commit check failed
cvs [commit aborted]: correct above errors first!
betelgeuse@pena /mnt/checkouts/gentoo/xml/htdocs/proj/en/devrel/roll-call $ vim userinfo.xml
betelgeuse@pena /mnt/checkouts/gentoo/xml/htdocs/proj/en/devrel/roll-call $ cvs commit -m "Add jsbronder (bug #188400)."

Gentoo XML-QA-checker called.  In case of troubles, contact neysx@gentoo.org or pylon@gentoo.org

userinfo.xml:3240: element email: validity error : No declaration for attribute role of element email
    <email role="gentoo">jsbronder@gentoo.org</email>
                        ^
XML-Checking userinfo.xml ... [ failed ]

cvs commit: Pre-commit check failed
cvs [commit aborted]: correct above errors first!
betelgeuse@pena /mnt/checkouts/gentoo/xml/htdocs/proj/en/devrel/roll-call $ vim userinfo.xml
betelgeuse@pena /mnt/checkouts/gentoo/xml/htdocs/proj/en/devrel/roll-call $ cvs commit -m "Add jsbronder (bug #188400)."

Gentoo XML-QA-checker called.  In case of troubles, contact neysx@gentoo.org or pylon@gentoo.org

XML-Checking userinfo.xml ... [ done ]

/var/cvsroot/gentoo/xml/htdocs/proj/en/devrel/roll-call/userinfo.xml,v  <--  userinfo.xml
new revision: 1.1005; previous revision: 1.1004
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-11-16 12:37:11 UTC
betelgeuse: phreak is working on it already, I think he has a new perl_ldap on hand.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2007-11-16 12:43:05 UTC
While you're at it, make sure the xml starts like this:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/proj/en/devrel/roll-call/userinfo.xsl" type="text/xsl"?>
<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
<!DOCTYPE userlist SYSTEM "/dtd/userinfo.dtd">


i.e. processing instruction using userinfo-devlist.xsl is not used anymore
Comment 3 Christian Heim (RETIRED) gentoo-dev 2007-11-16 17:27:46 UTC
Putting in the DEPEND, as the other bug has all the fixes we need for this.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-11-17 14:10:50 UTC
The new perl_ldap is in place on ldap1 and dev.
There is still some data merging that needs to go on, phreak is looking at it, and should have an LDIF for me in a day or two (users with weird/missing data in LDAP, or only in XML, not LDAP).
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-12-17 10:12:56 UTC
userinfo.xml is now updated every hour, on the :15's, from LDAP.