Bug 1326659

Summary: Wrong error message when creating File Handler in Logging subsystem for EAP7 plugin
Product: [JBoss] JBoss Operations Network Reporter: Vojta Prusa <vprusa>
Component: Plugin -- JBoss EAP 7Assignee: Josejulio Martínez <jmartine>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.3.5CC: fbrychta, jmartine, spinder
Target Milestone: ER01Keywords: Triaged
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-13 15:17:08 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:
Bug Depends On:    
Bug Blocks: 1327633    

Description Vojta Prusa 2016-04-13 10:05:29 UTC
Description of problem:
When creating File Handler child resource for Logging subsystem via Create Resource Wizard and setting file Path with using "relative to" option and choosing file path prefix the error message does not contain full wrong path to file but just file path prefix.


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: standalone/logs/server.log
Relative To: jboss.domain.servers.dir


Actual results:
WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: WFLYCTL0256: Could not find a path called 'jboss.domain.servers.dir', rolled-back=true  

Expected results:
WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: WFLYCTL0256: Could not find a path called 'jboss.domain.servers.dir/standalone/logs/server.log', rolled-back=true

Additional info:

Comment 1 Josejulio Martínez 2016-04-14 18:20:54 UTC
The error message is fine, EAP7 is complaining that couldn't find "jboss.domain.servers.dir", that's because that path is only present on domain mode.

jboss.domain.servers.dir - directory under which a host controller will create the working area for individual server instances.

Comment 2 Josejulio Martínez 2016-04-20 17:52:10 UTC
commit 89c130d329a7c2bac0c2bf5b771d6dc6e3e5df3d
Author: Josejulio Martínez <jmartine>
Date:   Thu Apr 14 17:07:45 2016 -0500

    Bug 1326659 - Cleaned relative-to option values.