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

OggZipDataset: normalize // to / when reading files from archive #1624

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NeoLegends
Copy link
Collaborator

The dataset implementation joins some (potentially empty) paths, sometimes leading to double slashes in the resulting paths. This can break lookup in the zip file, even though there is a file at that path. By normalizing // to / the file can be read from the archive properly. On normal file systems this usually isn't a problem, because they also do this.

The dataset implementation joins some paths wrongly at times, leading to double slashes breaking lookup in the zip file, even though there is a file at that path. By normalizing // to / the file can be read properly.
@NeoLegends NeoLegends self-assigned this Sep 10, 2024
@NeoLegends NeoLegends requested review from albertz and a team as code owners September 10, 2024 13:54
@albertz
Copy link
Member

albertz commented Sep 10, 2024

This sounds like a bug in the dataset preparation pipeline?

And there are also much more cases how it could be wrong, e.g. having /// in it, or having .. in it, or whatever else. And I'm not sure to what degree we should add workarounds on RETURNN side just because you don't want to fix the bug in the dataset preparation pipeline?

@albertz
Copy link
Member

albertz commented Oct 12, 2024

What is the status here? Was this just a bug in the dataset preparation pipeline, as I assumed? So then just fix the dataset preparation pipeline, and this here is not needed?

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