Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10955

In JASN1Reader allow preprocess of ASN files to reconcile unsupported features

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M1, 1.22.0
    • None
    • None

    Description

      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.
          SomeType ::= INTEGER (ALL EXCEPT (0..15))
          
      • Extension marker (a.k.a "ellipsis" or
        ...
        

        )

        • Can occur in constraints (e.g.
          SomeType ::= INTEGER (0..8,...,100..200)
          

          although

          SomeType ::= INTEGER (0..8,...)
          

          works)

        • or in type definitions (e.g.
          RootType::= SEQUENCE {
          	field1		INTEGER,
          	field2		INTEGER,
          	...,
          	field3      INTEGER
          }
          

          but this seems to work as well).

      • Version brackets e.g.
        SomeType ::= SEQUENCE {
        	integerField1		INTEGER,
        	integerField2		INTEGER,
        	...,
        [[ -- from version 2
        	integerField3		INTEGER,
        	integerField4		INTEGER ]]
        }
        

        Seems to require extension marker as well.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tpalfy Tamas Palfy
            tpalfy Tamas Palfy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 50m
                3h 50m

                Slack

                  Issue deployment