commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LANG-981) DurationFormatUtils#lexx does not detect unmatched quote char
Date Mon, 03 Mar 2014 21:46:20 GMT

     [ https://issues.apache.org/jira/browse/LANG-981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved LANG-981.
-----------------------

       Resolution: Fixed
    Fix Version/s:     (was: Patch Needed)
                   3.4

URL: http://svn.apache.org/r1573770
Log:
LANG-981 DurationFormatUtils#lexx does not detect unmatched quote char

Modified:
    commons/proper/lang/trunk/src/changes/changes.xml
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java


> DurationFormatUtils#lexx does not detect unmatched quote char
> -------------------------------------------------------------
>
>                 Key: LANG-981
>                 URL: https://issues.apache.org/jira/browse/LANG-981
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.time.*
>            Reporter: Sebb
>             Fix For: 3.4
>
>
> The method DurationFormatUtils#lexx does not detect if the format string contains an
unmatched single-quote character.
> For example "yMd'test" should really be rejected, as the literal string "test" is not
properly terminated.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message