tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Goodenough <david.goodeno...@btconnect.com>
Subject Re: Which is right, the comment or the docs?
Date Tue, 25 Jan 2011 14:09:48 GMT
On Tuesday 25 January 2011, Konstantin Kolinko wrote:
> 2011/1/25 David Goodenough <david.goodenough@btconnect.com>:
> > In the file tomcat-users.xml (at least the one shipped with the 6.0.23
> > Debian package) the sample users have the attribute username= in the
> > user tag.  But in the manager-howto.html (again shipped with the Debian
> > package) the examples all say the attribute should be name=.  Which is
> > right?
> 
> Either one works.
> 
> o.a.c.users..MemoryUserCreationFactory#createObject(Attributes attributes):
> 
>         String username = attributes.getValue("username");
>         if (username == null) {
>             username = attributes.getValue("name");
>         }
> 
> Best regards,
> Konstantin Kolinko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
Might it not be an idea to document this in both the manager-howto and
the sample config file?

Otherwise its just confusing.

David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message