We're updating the issue view to help you get more done. 

The configuration of <cargo.servlet.users> requires a role

Description

The configuration of <cargo.servlet.users> requires a role even if the application does not use roles.

The format is:

1 username:password:role1[,rolen]

I was expecting the format to be :

1 username:password[:role1[,rolen]]

A workaround is to define a dummy role.

***

  • From pom.xml
    ***

    1 2 3 <cargo.servlet.users> tomcat:passwd|user1:passwd </cargo.servlet.users>
1 2 3 4 5 6 7 8 org.codehaus.cargo.container.ContainerException: Invalid format for [tomcat:passwd] at org.codehaus.cargo.container.property.User.parseUser(User.java:200) at org.codehaus.cargo.container.property.User.parseUsers(User.java:155) at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatStandaloneLocalConfiguration.getSecurityToken(AbstractTomcatStandaloneLocalConfiguration.java:72) at org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaStandaloneLocalConfiguration.createTomcatFilterChain(AbstractCatalinaStandaloneLocalConfiguration.java:186) at org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaStandaloneLocalConfiguration.doConfigure(AbstractCatalinaStandaloneLocalConfiguration.java:69) at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:161) at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:144)

Status

Assignee

Savas Ali Tokmen

Reporter

Paul Spencer

Fix versions

Affects versions

0.9

Priority

Minor