Skip to content

Conformance corpus: expected outcomes for explicit extraction (SPEC 1.1.1 §3) #4

Open

Description

@anderix

SPEC v1.1.1 §3 adds rules for writing additional members on explicit request. The corpus can't test them: every case records a container verdict, and every container these rules concern is conformant (accept).

Proposal

  • Add an optional per-case field recording the expected outcome of an explicit extraction of all members, e.g. extract = "write" or extract = "refuse", plus the set of paths expected on disk for write.
  • Bump manifest_version.
  • Update conformance/README.md: extraction behaviour moves from "what this cannot test" to what it can, for implementations that offer it. Cases stay non-normative.

Cases

All accept, each with an extraction expectation:

  • Refused: ../ traversal, absolute path (leading /), empty segment (a//b), backslash, colon, a C0 character, DEL, a name flagged UTF-8 that is not UTF-8, two members sharing a name, a member named as a directory another passes through (a and a/b), and a symlink entry.
  • Written: directory entries passed over (zip -r shape, __MACOSX/ shape), nested members, a..b as a segment.

Default extraction (no explicit request) still writes only the content file. The README states that as the baseline every case is held to.

generate.py already writes entries that aren't regular files and CP437 and UTF-8 names, so the writer needs no new primitives.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions