Skip to content

Library not recognizing headers for newer Autosar Versions even thought they are mentioned as supported in the Crate #12

@jjvilches

Description

@jjvilches

Hello,
I have arxmls using r24.11. The python library is not recognizing them and rejects the file when reading the header and throws "Failed to parse file.arxml:2: Invalid arxml file: bad file header". Here is a header example:
xmlns="http://autosar.org/schema/r24.11".

I checked the rust crate, and the library should handle up to r25.11. So expected behavior should be that namespace URI http://autosar.org/schema/r24.11 is accepted (same as how http://autosar.org/schema/r4.0 is), since AUTOSAR_00053 schema is already supported.

Temporary workaround:

  • modify the header so that an older Autosar schema is declared and used. The library runs smoothly then.

It seems the namespace URI validation in the header parser wasn't updated when the R24-11 schema was added — only the element/attribute definitions were updated. The r24.11 / r25.11 URI patterns need to be added to the accepted namespace list alongside r4.0.
This is not an big issue so far since I dont see any schema changes between the versions delivered by Autosar, but this might become a blocking one in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions