Bug 22715 posted

> BTW, what makes you think UserDatabase is new? ;)

As opposed to the old MemoryRealm from Tomcat 4.0.x, which is now commented
out by default in server.xml :-)

      <!-- Comment out the old realm but leave here for now in case we
           need to go back quickly -->
      <!--
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
      -->

PaulE


-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 10:44 AM
To: Tomcat Users List
Subject: RE: tomcat-user.xml re-writing - bug?


Howdy,
It looks like a bug -- file it in Bugzilla.

You can't stop the file being re-written, and if you have any comments
in the file they'll be removed.

I'm not sure if XML entities are allowed or not.  It's really intended
to be a simple, get started quickly mechanism.  Not a complete
enterprise user database solution ;)

BTW, what makes you think UserDatabase is new? ;)

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Extance, Paul [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 25, 2003 1:20 PM
>To: 'Tomcat Users List'
>Subject: tomcat-user.xml re-writing - bug?
>
>Hi,
>
>I'm using the new UserDatabase (org.apache.catalina.UserDatabase /
>org.apache.catalina.users.MemoryUserDatabaseFactory) as configured by
>default with Tomcat 4.1.27.
>
>Our System admin made a basic XML error, and in tomcat-users.xml put
and
>entry in like...
>
><user username="tomcat" password="tom&cat" roles="tomcat" />
>
>Obviously the '&' makes this invalid XML, and tomcat doesn't start...
>
>We changed the & to &amp; the XML was then valid, the user account
worked,
>life was good....
>
>A few days later, after he restarted the server, it was broke again...
>
>Seems that when Tomcat re-wrote out the tomcat-users.xml file, instead
of
>escaping the & and writing it back out as &amp; it just put it out a &,
so
>we were back to square one!
>
>Question:
>1) Is this a bug?
>2) Can I stop the 're-writing' part of this as a work around?
>3) Are XML entities not allowed in tomcat-users.xml?
>
>Thanx
>
>PaulE
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to