Bug 885686 - Tomcat web application configuration form allows save without Config File required field
Summary: Tomcat web application configuration form allows save without Config File req...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- Tomcat
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ER01
: JON 3.2.0
Assignee: Simeon Pinder
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-10 12:21 UTC by Libor Fuka
Modified: 2014-06-20 16:08 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:33:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Libor Fuka 2012-12-10 12:21:50 UTC
Description of problem:
You can change and save configuration of Tomcat web application without filling Text field "Config File" (required field). I think Config File text field should not be required.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rémy Maucherat 2012-12-14 16:47:31 UTC
This attribute is among the attributes I identified as problematic if required. Another issue for this particular one is that there's a type conflict between Tomcat 6 and 7 (a String became a URL).

Comment 4 Charles Crouch 2013-04-12 15:35:50 UTC
There appear to be two issues here:

1) "You can change and save configuration of Tomcat web application without filling Text field "Config File" (required field). "

This sounds like we allow people to leave required fields blank. If this is is the case then we need to fix that in core JON

2) "I think Config File text field should not be required."

Making a field not required is done by the updating the rhq-plugin which is done by the EWS team.

Comment 5 Charles Crouch 2013-04-12 15:37:13 UTC
" Another issue for this particular one is that there's a type conflict between Tomcat 6 and 7 (a String became a URL)."

Remy please raise a new EWS issue if this is a problem

Comment 6 Charles Crouch 2013-04-12 15:38:36 UTC
(In reply to comment #4)
Assigning to 3.2 so that we can see if 1) is actually a problem in core JON

Comment 7 Thomas Segismont 2013-05-28 15:38:21 UTC
Fixed in master

commit 2f15379bb357495c558b05fb271e247fa1681d01
Author: Thomas Segismont <tsegismo>
Date:   Tue May 28 17:36:13 2013 +0200

Bug 885686 - Tomcat web application configuration form allows save without Config File required field

It's not a Tomcat specific issue. We had a problem in *EditView classes: the check to enable/disable the save button was only based on the invalid properties set having been changed. Now it also looks at the set being empty or not.

Comment 8 Thomas Segismont 2013-05-28 15:48:08 UTC
(In reply to Charles Crouch from comment #5)
> " Another issue for this particular one is that there's a type conflict
> between Tomcat 6 and 7 (a String became a URL)."
> 
> Remy please raise a new EWS issue if this is a problem

The "required" attribute has been set to false in this commit:

commit 417fbb59817edf64a93d3cca00f2c51926379ab2
Author: Rémy Maucherat <rmaucher>
Date:   Tue Mar 26 14:51:55 2013 +0100

    Fix some roles operations.
    Fix some attributes (not valid across all versions).

Comment 9 Simeon Pinder 2013-07-02 20:33:35 UTC
This bz is available for testing with the latest 3.2.x brew build:
https://brewweb.devel.redhat.com//buildinfo?buildID=280316

Comment 10 Libor Fuka 2013-07-15 12:22:08 UTC
JON EWS Tomcat plugin 3.2.0 with EWS 2.0.1 T6/T7 did not discovered child resources after proper configuration jmx connection and proper principal/credentials on RHEL6.

So i can't test configuration of Tomcat web application.

Note: Tomcat plugin was updated during EWS 2.0.1 release. See customer portal. This updated and fixed JON EWS Tomcat plugin functionality should be included in JON 3.2.0 release. Please update Tomcat plugin with 3.2.0.
Jean-Frederic can provide more info about tomcat plugin update.

Comment 11 Simeon Pinder 2013-07-23 13:20:24 UTC
As reported, there are changes made to the JON 3.1.x stream that have not been merged/ported back to master. This needs to be done before QA will be able to test in a new 3.2.x build.

i)Assigning to myself to merge those changes to master 
ii)after which the status will be moved to MODIFIED for testing in a later 3.2.x build.
iii)Will reassign back to thomas.

Comment 12 Simeon Pinder 2013-08-14 17:47:30 UTC
These are merged into master with commits:
0ac6f0c
f625bff
f04c9ef
a978c9b
0aec2ec
07dd8cd
4db8471

Comment 13 Simeon Pinder 2013-09-23 14:40:35 UTC
Moving this to ON_QA as this is available for test in ER1.

Comment 14 Libor Fuka 2013-09-23 15:17:37 UTC
Text field "Config File" is no longer required in 3.2.0.ER1


Note You need to log in before you can comment on or make changes to this bug.