You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2023/05/11 15:14:00 UTC

[jira] [Updated] (MINIFICPP-2119) fix CronTests error with C.UTF-8 locale

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

Marton Szasz updated MINIFICPP-2119:
------------------------------------
    Summary: fix CronTests error with C.UTF-8 locale  (was: fix CronTests error: Couldn't parse cron field: 3 locale::facet::_S_create_c_locale name not valid)

> fix CronTests error with C.UTF-8 locale
> ---------------------------------------
>
>                 Key: MINIFICPP-2119
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2119
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Marton Szasz
>            Priority: Major
>
> When the locale is C.UTF-8.
> {noformat}
> -------------------------------------------------------------------------------
> Cron expression ctor tests
> -------------------------------------------------------------------------------
> /home/szaszm/nifi-minifi-cpp/libminifi/test/unit/CronTests.cpp:35
> ...............................................................................
> /home/szaszm/nifi-minifi-cpp/libminifi/test/unit/CronTests.cpp:104: FAILED:
>   REQUIRE_NOTHROW( Cron("0 10,44 14 ? 3 WED") )
> due to unexpected exception with message:
>   Couldn't parse cron field: 3 locale::facet::_S_create_c_locale name not valid
> -------------------------------------------------------------------------------
> Cron allowed nonnumerical inputs
> -------------------------------------------------------------------------------
> /home/szaszm/nifi-minifi-cpp/libminifi/test/unit/CronTests.cpp:125
> ...............................................................................
> /home/szaszm/nifi-minifi-cpp/libminifi/test/unit/CronTests.cpp:126: FAILED:
>   REQUIRE_NOTHROW( Cron("* * * * Jan,fEb,MAR,Apr,May,jun,Jul,Aug,Sep,Oct,Nov,Dec * *") )
> due to unexpected exception with message:
>   Couldn't parse cron field: Jan,fEb,MAR,Apr,May,jun,Jul,Aug,Sep,Oct,Nov,Dec
>   locale::facet::_S_create_c_locale name not valid
> -------------------------------------------------------------------------------
> Cron::calculateNextTrigger
> -------------------------------------------------------------------------------
> /home/szaszm/nifi-minifi-cpp/libminifi/test/unit/CronTests.cpp:130
> ...............................................................................
> /home/szaszm/nifi-minifi-cpp/libminifi/test/unit/CronTests.cpp:130: FAILED:
>   {Unknown expression after the reported line}
> due to unexpected exception with message:
>   Couldn't parse cron field: 11 locale::facet::_S_create_c_locale name not
>   valid
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)