[ https://issues.apache.org/jira/browse/NIFI-10955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17711177#comment-17711177 ]
ASF subversion and git services commented on NIFI-10955: -------------------------------------------------------- Commit 3322ad7a20c99dec01ee0c3f530c0566acd13258 in nifi's branch refs/heads/main from Tamas Palfy [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3322ad7a20 ] NIFI-10955 Added optional preprocessing to JASN1Reader This close #6769 Signed-off-by: David Handermann <exceptionfact...@apache.org> > In JASN1Reader allow preprocess of ASN files to reconcile unsupported features > ------------------------------------------------------------------------------ > > Key: NIFI-10955 > URL: https://issues.apache.org/jira/browse/NIFI-10955 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Tamas Palfy > Priority: Major > Time Spent: 3h 50m > Remaining Estimate: 0h > > The ASN specification allows the creation of valid ASN files that has > features unrecognized by the asn1bean library we are using in JASN1Reader. > We can add a preprocessing step that creates modified versions of the > provided ASN files (leaving the originals intact) that removes unsupported > features in a way that makes them less strict but otherwise should still be > compatible with incoming data. > Identified unsupported features: > * Certain constraint types > ** E.g. > {code:java} > SomeType ::= INTEGER (ALL EXCEPT (0..15)) > {code} > * Extension marker (a.k.a "ellipsis" or > {code:java} > ... > {code} > ) > ** Can occur in constraints (e.g. > {code:java} > SomeType ::= INTEGER (0..8,...,100..200) > {code} > although > {code:java} > SomeType ::= INTEGER (0..8,...) > {code} > works) > ** or in type definitions (e.g. > {code:java} > RootType::= SEQUENCE { > field1 INTEGER, > field2 INTEGER, > ..., > field3 INTEGER > } > {code} > but this seems to work as well). > * Version brackets e.g. > {code:java} > SomeType ::= SEQUENCE { > integerField1 INTEGER, > integerField2 INTEGER, > ..., > [[ -- from version 2 > integerField3 INTEGER, > integerField4 INTEGER ]] > } > {code} > Seems to require extension marker as well. -- This message was sent by Atlassian Jira (v8.20.10#820010)