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

Arvind Kandpal updated CASSANDRA-21852:
---------------------------------------
    Status: Ready to Commit  (was: Review In Progress)

> LENGTH and OCTET_LENGTH constraint fix from CASSANDRA-21817 is missing on 
> trunk
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-21852
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21852
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Feature/Constraints
>            Reporter: Arvind Kandpal
>            Assignee: Arvind Kandpal
>            Priority: Normal
>             Fix For: 7.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The fix for CASSANDRA-21817 is on cassandra-6.0 but is missing on trunk. The 
> merge (cassandra-6.0 into trunk) brought in CASSANDRA-21818 but dropped the 
> changes to LengthConstraint, OctetLengthConstraint and 
> ConstraintArgumentsTest; only the CHANGES.txt line reached trunk. On current 
> trunk, LengthConstraint.java:95 and OctetLengthConstraint.java:81 still call 
> Integer.parseInt(term) inside the catch block, so a malformed term throws 
> NumberFormatException instead of InvalidConstraintDefinitionException, and 
> ConstraintArgumentsTest#testPrepareRejectsMalformedTermWithInvalidDefinition 
> fails with NumberFormatException: For input string: "*abc". 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to