Skip to content

Unclear message when the mimetype has extra fields #348

Description

@DavidBruant

I created this file in a way that the mimetype file has extra fields

Now, i did it on purpose, but the first time it was by mistake because i was new to both the odf and zip format

When using the validator, i get the following message:

yo.odt/mimetype: Error: There shall be no extra field for the 'mimetype' file of ODF package 'yo.odt'!

this message helped me understand that there was a problem,
but the message did not help me understand the problem
(and it helped me on how to fix it only after i understood the problem)

I think this error message should mention that there is a problem with the zip entry. Maybe something along the lines of:

Error: There shall be no extra field for the 'mimetype' zip entry of ODF package 'yo.odt'!

Also, optionnally, i think it would be amazing if the error message linked to the part of the spec that requires this. In this case:
https://oasis-tcs.github.io/odf-tc/odf1.3/content.odf13-packages.html#__RefHeading__752809_826425813

I haven't taken the time to look into it yet, but i'm happy to contribute the error message change if there is agreement that it's a good idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions