helix-cli icon indicating copy to clipboard operation
helix-cli copied to clipboard

[import] Caching issue when url paths iare both filename and subpath

Open catalan-adobe opened this issue 1 year ago • 0 comments

Description When caching following URLs:

  1. http://wilson.com/en-us/blog (no extension)
  2. http://wilson.com/en-us/blog/basketball/events/wilson-takes-paris-storm-recap-nba-paris-game-2024 Request 1. will create local file <cache_folder>/en-us/blog Then, caching 2. (or any other /en-us/blog/** path) will fail as it cannot create folder <cache_folder>/en-us/blog (as the path already exists as a file)

To Reproduce

  1. Start the AEM importer aem import --cache /tmp/cache
  2. In the importer UI, import http://wilson.com/en-us/blog
  3. Check /tmp/cache/en-us/blog file got created
  4. Import http://wilson.com/en-us/blog/basketball/events/wilson-takes-paris-storm-recap-nba-paris-game-2024 => Notice the cached file is not created + error message in the CLI log

Expected behavior The CLI should handle such case.

catalan-adobe avatar Feb 14 '24 10:02 catalan-adobe