[ISO9660] Joliet directory parsing not working properly when directory extends more than 1 sector #704

Closed
opened 2026-01-29 15:26:56 +00:00 by claunia · 0 comments
Owner

Originally created by @robin-francois on GitHub (Apr 7, 2021).

Originally assigned to: @claunia on GitHub.

Prerequisites

  • Are you running the latest version?
  • Can you reproduce the problem in the debug version?

Check and fill as appropriate:

  • I was running Aaru under Windows [version here]...
  • I was running Aaru under Linux 5.2.0.3330...
  • I was running Aaru under macOS [version here]...
  • ...in 32-bit
  • ...in 64-bit
  • ...using an Intel / AMD processor
  • ...using an ARM or Apple Silicon processor
    • Image format: aaru format
    • Application that created the image: aaru
  • I was converting the image...
    • ...Destination image format:
  • I was listing the filesystem contents...
  • I was extracting the filesystem contents...
    • ...Filesystem:
    • Analyze command recognizes the filesystem
  • I was creating a metadata sidecar
  • I was checksumming the image
  • I was verifying the image

Description

After discussing the matter with @claunia, there seems to be a bug in Joliet directory parsing that "hides" some files when performing filesystem listing or extraction.

Exact command line used:

aaru fs ls Master/001-CD1.aaru -l

Expected behavior:

The fs ls command lists all files and the fs extract command extracts all the files.

Actual behavior:

Depending on the namespace used, some files are not listed.

Output of command execution with debug output enabled

Not full output, only excerpt, and without debug output enabled.

Excerpt of the output of the command with two different namespaces
With "normal" namespace

Directory: BILDER-I.JPG
                          10463     2,378,185  MISTER10.JPG
                com.apple.ResourceFork  50,972
                          11649     1,291,644  MISTER11.JPG
                com.apple.ResourceFork  48,815
                          12307     2,712,576  MISTER12.JPG
                com.apple.ResourceFork  51,516
                          13657     2,082,045  MISTER13.JPG
                com.apple.ResourceFork  48,067
                           2149     1,861,686  MISTERB1.JPG
                com.apple.ResourceFork  48,434
                           3083     1,364,443  MISTERB2.JPG
                com.apple.ResourceFork  49,137
                           3775     2,595,319  MISTERB3.JPG
                com.apple.ResourceFork  47,821
                           5069     1,695,768  MISTERB4.JPG
                com.apple.ResourceFork  49,265
                           5923     2,686,135  MISTERB5.JPG
                com.apple.ResourceFork  46,312
                           7259     2,029,530  MISTERB6.JPG
                com.apple.ResourceFork  45,694
                           8275     1,892,282  MISTERB7.JPG
                com.apple.ResourceFork  47,677
                           9223     1,126,894  MISTERB8.JPG
                com.apple.ResourceFork  47,443
                           9801     1,301,021  MISTERB9.JPG
                com.apple.ResourceFork  49,378
                            367     1,557,591  MISTERBI.JPG
                com.apple.ResourceFork  46,697
                          14699       446,726  PAOLOPOL.JPG
                com.apple.ResourceFork  46,115
                          14921     1,743,872  VIDEOHLL.EVI
                com.apple.ResourceFork  2,542



With default namespace (joliet)

Directory: Bilder - images.jpg
                          14921     1,743,872  VIDEOHÜLLE Viaggio
                com.apple.ResourceFork  2,542
                            367     1,557,591  misterbianco-1.jpg
                com.apple.ResourceFork  46,697
                           2149     1,861,686  misterbianco-antonio.galle.jpg
                com.apple.ResourceFork  48,434
                           3083     1,364,443  misterbianco-aquarium.jpg
                com.apple.ResourceFork  49,137
                           3775     2,595,319  misterbianco-enzo balla.jpg
                com.apple.ResourceFork  47,821
                           5069     1,695,768  misterbianco-flavio.jpg
                com.apple.ResourceFork  49,265
                           5923     2,686,135  misterbianco-lungomare.jpg
                com.apple.ResourceFork  46,312
                           7259     2,029,530  misterbianco-neve etna.jpg
                com.apple.ResourceFork  45,694
                           8275     1,892,282  misterbianco-ragazza treno.jpg
                com.apple.ResourceFork  47,677
                           9223     1,126,894  misterbianco-ragazza.jpg
                com.apple.ResourceFork  47,443

Image

Image shared with @claunia directly (filename: 001-CD1.aaru, size ~40MB)

Originally created by @robin-francois on GitHub (Apr 7, 2021). Originally assigned to: @claunia on GitHub. ### Prerequisites * [ ] Are you running the latest version? * [ ] Can you reproduce the problem in the debug version? ### Check and fill as appropriate: * [ ] I was running Aaru under Windows [version here]... * [x] I was running Aaru under Linux 5.2.0.3330... * [ ] I was running Aaru under macOS [version here]... * [ ] ...in 32-bit * [x] ...in 64-bit * [x] ...using an Intel / AMD processor * [ ] ...using an ARM or Apple Silicon processor * **Image format**: aaru format * **Application that created the image**: aaru * [ ] I was converting the image... * ...**Destination image format**: * [x] I was listing the filesystem contents... * [x] I was extracting the filesystem contents... * ...**Filesystem**: * [x] Analyze command recognizes the filesystem * [ ] I was creating a metadata sidecar * [ ] I was checksumming the image * [ ] I was verifying the image ### Description After discussing the matter with @claunia, there seems to be a bug in Joliet directory parsing that "hides" some files when performing filesystem listing or extraction. ### Exact command line used: `aaru fs ls Master/001-CD1.aaru -l` ### Expected behavior: The `fs ls` command lists all files and the `fs extract` command extracts all the files. ### Actual behavior: Depending on the namespace used, some files are not listed. ### Output of command execution with debug output enabled Not full output, only excerpt, and without debug output enabled. <details> <summary>Excerpt of the output of the command with two different namespaces</summary> ``` With "normal" namespace Directory: BILDER-I.JPG 10463 2,378,185 MISTER10.JPG com.apple.ResourceFork 50,972 11649 1,291,644 MISTER11.JPG com.apple.ResourceFork 48,815 12307 2,712,576 MISTER12.JPG com.apple.ResourceFork 51,516 13657 2,082,045 MISTER13.JPG com.apple.ResourceFork 48,067 2149 1,861,686 MISTERB1.JPG com.apple.ResourceFork 48,434 3083 1,364,443 MISTERB2.JPG com.apple.ResourceFork 49,137 3775 2,595,319 MISTERB3.JPG com.apple.ResourceFork 47,821 5069 1,695,768 MISTERB4.JPG com.apple.ResourceFork 49,265 5923 2,686,135 MISTERB5.JPG com.apple.ResourceFork 46,312 7259 2,029,530 MISTERB6.JPG com.apple.ResourceFork 45,694 8275 1,892,282 MISTERB7.JPG com.apple.ResourceFork 47,677 9223 1,126,894 MISTERB8.JPG com.apple.ResourceFork 47,443 9801 1,301,021 MISTERB9.JPG com.apple.ResourceFork 49,378 367 1,557,591 MISTERBI.JPG com.apple.ResourceFork 46,697 14699 446,726 PAOLOPOL.JPG com.apple.ResourceFork 46,115 14921 1,743,872 VIDEOHLL.EVI com.apple.ResourceFork 2,542 With default namespace (joliet) Directory: Bilder - images.jpg 14921 1,743,872 VIDEOHÜLLE Viaggio com.apple.ResourceFork 2,542 367 1,557,591 misterbianco-1.jpg com.apple.ResourceFork 46,697 2149 1,861,686 misterbianco-antonio.galle.jpg com.apple.ResourceFork 48,434 3083 1,364,443 misterbianco-aquarium.jpg com.apple.ResourceFork 49,137 3775 2,595,319 misterbianco-enzo balla.jpg com.apple.ResourceFork 47,821 5069 1,695,768 misterbianco-flavio.jpg com.apple.ResourceFork 49,265 5923 2,686,135 misterbianco-lungomare.jpg com.apple.ResourceFork 46,312 7259 2,029,530 misterbianco-neve etna.jpg com.apple.ResourceFork 45,694 8275 1,892,282 misterbianco-ragazza treno.jpg com.apple.ResourceFork 47,677 9223 1,126,894 misterbianco-ragazza.jpg com.apple.ResourceFork 47,443 ``` </details> ### Image Image shared with @claunia directly (filename: 001-CD1.aaru, size ~40MB)
claunia added the bugfilesystem labels 2026-01-29 15:26:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#704