Bug 1147806 - Create a new error message for suffix attribute on size-rotating-file-handler
Summary: Create a new error message for suffix attribute on size-rotating-file-handler
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Logging
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: DR4
: EAP 6.4.0
Assignee: James Perkins
QA Contact: Nikoleta Hlavickova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-30 06:09 UTC by Petr Kremensky
Modified: 2019-08-19 12:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:43:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EAP6-150 0 Major Closed [RFE] Requesting suffix support for size-based log file rotation (PRODMGT-416) 2016-03-22 19:20:01 UTC
Red Hat Issue Tracker WFCORE-136 0 Major Resolved Create a new error message for suffix attribute on size-rotating-file-handler 2016-03-22 19:20:01 UTC

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


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