Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate invalid zim file with invalid offsets in clusters. #9

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

mgautierfr
Copy link
Collaborator

@mgautierfr mgautierfr commented Jun 10, 2024

Needed for openzim/libzim#895

mgautierfr added a commit to openzim/libzim that referenced this pull request Jun 10, 2024
Not that the test is correctly catching invalid offset only for nons variant.
Current `validate` method is not checking the offsets in the cluster.
Nons variant detect the invalid offset as `urlPtrList` is stored in the cluster
and so we try to open it.

Correct test will be added in next commit.

Need PR openzim/zim-testing-suite#9
Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the PR can be merged as a single commit

@mgautierfr mgautierfr merged commit 75e3687 into main Jun 13, 2024
@mgautierfr mgautierfr deleted the wrong_cluster_offsets branch June 13, 2024 14:46
@mgautierfr
Copy link
Collaborator Author

Squashed and merged.

mgautierfr added a commit to openzim/libzim that referenced this pull request Jun 17, 2024
Not that the test is correctly catching invalid offset only for nons variant.
Current `validate` method is not checking the offsets in the cluster.
Nons variant detect the invalid offset as `titlePtrList` is stored in the cluster
and so we try to open it (using `X/listing/titleOrdered/vX`)

Correct test will be added in next commit.

Need PR openzim/zim-testing-suite#9
kelson42 pushed a commit to openzim/libzim that referenced this pull request Jun 22, 2024
Not that the test is correctly catching invalid offset only for nons variant.
Current `validate` method is not checking the offsets in the cluster.
Nons variant detect the invalid offset as `titlePtrList` is stored in the cluster
and so we try to open it (using `X/listing/titleOrdered/vX`)

Correct test will be added in next commit.

Need PR openzim/zim-testing-suite#9
kelson42 pushed a commit to openzim/libzim that referenced this pull request Jun 22, 2024
Not that the test is correctly catching invalid offset only for nons variant.
Current `validate` method is not checking the offsets in the cluster.
Nons variant detect the invalid offset as `titlePtrList` is stored in the cluster
and so we try to open it (using `X/listing/titleOrdered/vX`)

Correct test will be added in next commit.

Need PR openzim/zim-testing-suite#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants