Bug 1326657

Summary: File Path should not be empty when creating File Header child resource for Logging subsystem for EAP7 plugin
Product: [JBoss] JBoss Operations Network Reporter: Vojta Prusa <vprusa>
Component: Plugin -- JBoss EAP 7Assignee: Ruben Vargas Palma <rvargasp>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.3.5CC: fbrychta, loleary, miburman, rvargasp, vprusa
Target Milestone: ER01Keywords: Triaged
Target Release: One-off releaseFlags: rvargasp: needinfo? (vprusa)
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1326719 (view as bug list) Environment:
Last Closed: 2017-06-05 09:08:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vojta Prusa 2016-04-13 10:02:58 UTC
Description of problem:
When creating File Handler child resource for Logging subsystem the File path in 
Resource Create Wizard should be required not empty so it would not be possible to create resource with an empty File Path (if possible).


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


How reproducible:


Steps to Reproduce:
1) In JON UI go to Server - Top Level imports-> EAP7 standalone Servers -> EAP7 -> Subsystems -> Core -> logging -> Create Child -> File Handler ..
2) Set properties in Resource Create Wizard..
File Path property should be required for Finishing the Resource Create Wizard. 

Actual results:


Expected results:


Additional info:

Comment 5 Vojta Prusa 2017-03-28 16:50:13 UTC
Creating FileHandle for logging without setting any properties to Resource Create Wizard (step 1. with  name value: testFileHandler, step 2. all values set to null or empty ) JON's logs/server.log shows: 

12:34:42,672 INFO  [org.rhq.enterprise.server.resource.ResourceFactoryServerServiceImpl] (http-/0.0.0.0:7080-6) Received create resource response: CreateResourceResponse[RequestId=10011, Status=Failure]
 
but the only UI Message is:
A request to create a Resource with the name of [testFileHandler] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory.

If File Path property is set resource is created successfully:
12:45:06,313 INFO  [org.rhq.enterprise.server.resource.ResourceFactoryServerServiceImpl] (http-/0.0.0.0:7080-1) Received create resource response: CreateResourceResponse[RequestId=10021, Status=Success]

I suppose log INFO message should show in UI as well for failed resource creating or it should not be possible to finish the Resource Create Wizard without setting File Path value.

No errors in logs.

Comment 7 Filip Brychta 2017-06-05 09:08:21 UTC
The issue is not visible on JON3.3.8 -> closing as duplicate of bz1328316

*** This bug has been marked as a duplicate of bug 1328316 ***