Bug 1326659 - Wrong error message when creating File Handler in Logging subsystem for EAP7 plugin
Summary: Wrong error message when creating File Handler in Logging subsystem for EAP7 ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- JBoss EAP 7
Version: JON 3.3.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER01
: One-off release
Assignee: Josejulio Martínez
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 1327633
TreeView+ depends on / blocked
 
Reported: 2016-04-13 10:05 UTC by Vojta Prusa
Modified: 2017-07-13 15:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-13 15:17:08 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1326707 0 medium CLOSED Wrong error message when creating File Handler in Logging subsystem for EAP6 plugin 2021-02-22 00:41:40 UTC

Internal Links: 1326707

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.


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