[ 
https://issues.apache.org/jira/browse/NIFI-3362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15866779#comment-15866779
 ] 

ASF GitHub Bot commented on NIFI-3362:
--------------------------------------

GitHub user mosermw opened a pull request:

    https://github.com/apache/nifi/pull/1509

    NIFI-3362 update FlowConfiguration.xsd to allow all current time period 
units

    @apiri I pulled out the new unit test that was in master from this 0.x PR.  
I would have needed a new flow.xml for the unit test to validate.  I didn't 
feel it was critical to include the test in 0.x considering that we have it in 
master, moving forward.  Please let me know if you disagree, and I will amend 
this PR.  Thanks!

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mosermw/nifi NIFI-3362-0x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/1509.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1509
    
----
commit a51047a3b82a552bd4c341954466d742697612e0
Author: Mike Moser <[email protected]>
Date:   2017-02-10T20:06:16Z

    NIFI-3362 update FlowConfiguration.xsd to allow all current time period 
units

----


> Update FlowConfiguration.xsd TimePeriod to match FormatUtils
> ------------------------------------------------------------
>
>                 Key: NIFI-3362
>                 URL: https://issues.apache.org/jira/browse/NIFI-3362
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 0.7.1, 1.1.1
>            Reporter: Michael Moser
>            Assignee: Michael Moser
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> The framework FormatUtils time duration parser has been updated to support 
> new terms such as "weeks".  But when using those new terms, we get ERROR 
> messages in the nifi-bootstrap.log.
> cvc-pattern-valid: Value '4 weeks' is not facet-valid with respect to pattern 
> '\d+\s*(ns|nano|nanos|nanoseconds|ms|milli|millis|milliseconds|s|sec|secs|seconds|m|min|mins|minutes|h|hr|hrs|hours|d|day|days)'
>  for type 'TimePeriod'.
> cvc-type.3.1.3: The value '4 weeks' of element 'flowFileExpiration' is not 
> valid.
> FlowConfiguration.xsd TimePeriod pattern should be updated to match 
> FormatUtils.
> Add to FlowConguration.xsd:
> nanosecond
> millisecond
> second
> minute
> hour
> w
> wk
> wks
> week
> weeks
> Add to FormatUtils.java
> nanosecond
> millisecond



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to