Bug 1147806

Summary: Create a new error message for suffix attribute on size-rotating-file-handler
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact: Nikoleta Hlavickova <nziakova>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: brian.stansberry, kkhan
Target Milestone: DR4   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:43:37 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:
Embargoed:

Description Petr Kremensky 2014-09-30 06:09:57 UTC
Description of problem:
As described in BZ1146855, the suffix attribute on size-rotating-file-handler has a little bit different functionality than on other handlers (seconds or milliseconds are allowed). However the validation error message is the same as on other handlers ("seconds or milliseconds are not allowed").

Version-Release number of selected component (if applicable):
EAP 6.4.0.DR2

How reproducible:
Always

Steps to Reproduce:
 1. Start standalone and connect to CLI
 2. Add size handler with seconds
./subsystem=logging/size-rotating-file-handler=SIZE:add(file={path=/tmp/log}, suffix=HH-SS)
 3. Trigger validation error on suffix attribute
./subsystem=logging/size-rotating-file-handler=SIZE:write-attribute(name=suffix, value=x)

Actual results:
 "outcome" => "failed",
 "failure-description" => "JBAS011554: The suffix (x) is invalid. A suffix must be a valid date format and not contain seconds or milliseconds.",

Expected results:
 Error message specific to Size handler

Comment 1 James Perkins 2014-09-30 15:43:46 UTC
Nice catch!

Comment 3 Nikoleta Hlavickova 2014-10-09 13:49:20 UTC
Verified with EAP 6.4.0.DR4.

Comment 4 JBoss JIRA Server 2015-04-28 15:04:50 UTC
John Doyle <jdoyle> updated the status of jira EAP6-150 to Closed