Cargo

CARGO does not create the list of roles in the tomcat users XML

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1.2, 1.2.0
  • Fix Version/s: 1.2.1
  • Component/s: Tomcat
  • Labels:
    None
  • Complexity:
    Intermediate
  • Tested on JDKs:
    JDK1.6.0_24
  • Number of attachments :
    0

Description

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

We need a configuration like <cargo.servlet.roles>.

Currently using the configuration <cargo.servlet.users> generates a tomcat-users.xml as follows:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
   <user name="user" password="password" roles="monitor"/>
</tomcat-users>

But it should be:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
   <role rolename="monitor"/>
   <user name="user" password="password" roles="monitor"/>
</tomcat-users>

Activity

Hide
Savas Ali Tokmen added a comment -

Hi Sibel

Did you try with CARGO 1.2.0?

Thank you

Show
Savas Ali Tokmen added a comment - Hi Sibel Did you try with CARGO 1.2.0? Thank you
Hide
Sibel Cilek added a comment -

Hi Savas,

I did not try it with CARGO 1.2.0. Is there a configuration like <cargo.servlet.roles>?
I could not find any way in 1.2.0 to set the role.

Thank you

Show
Sibel Cilek added a comment - Hi Savas, I did not try it with CARGO 1.2.0. Is there a configuration like <cargo.servlet.roles>? I could not find any way in 1.2.0 to set the role. Thank you
Hide
Savas Ali Tokmen added a comment -

Hi Sibel

No, CARGO only has cargo.servlet.users in which you describe the users, passwords and roles.

What is expected is that CARGO would automatically create the non-existing roles.

Do you get any error messages?

Thank you

Show
Savas Ali Tokmen added a comment - Hi Sibel No, CARGO only has cargo.servlet.users in which you describe the users, passwords and roles. What is expected is that CARGO would automatically create the non-existing roles. Do you get any error messages? Thank you
Hide
Sibel Cilek added a comment -

Hi Savas,

CARGO 1.2.0 does not create the non-existing role.
I get the same results as described in my first comment.
And I did not get any error message.

Thanks

Sibel

Show
Sibel Cilek added a comment - Hi Savas, CARGO 1.2.0 does not create the non-existing role. I get the same results as described in my first comment. And I did not get any error message. Thanks Sibel
Hide
Savas Ali Tokmen added a comment -

Hi Sibel

Fair enough, I get you point.

Now updated the source code and committed revision 3232.

Can you please check with version 1.2.1-SNAPSHOT? Instructions are on http://cargo.codehaus.org/Maven2+Plugin+Installation#Maven2PluginInstallation-snapshots

Thank you

Show
Savas Ali Tokmen added a comment - Hi Sibel Fair enough, I get you point. Now updated the source code and committed revision 3232. Can you please check with version 1.2.1-SNAPSHOT? Instructions are on http://cargo.codehaus.org/Maven2+Plugin+Installation#Maven2PluginInstallation-snapshots Thank you
Hide
Sibel Cilek added a comment -

Hi Savas,

thank you for your support/help.

It is working fine now.

Tesekkürler

Sibel

Show
Sibel Cilek added a comment - Hi Savas, thank you for your support/help. It is working fine now. Tesekkürler Sibel
Hide
Savas Ali Tokmen added a comment - - edited

Perfect, I'll then close the issue. Thanks, Sibel.

Bir şey değil, güzel günlerde kullanın

Show
Savas Ali Tokmen added a comment - - edited Perfect, I'll then close the issue. Thanks, Sibel. — Bir şey değil, güzel günlerde kullanın

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: