Skip to content

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

Description

@catalan-adobe

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.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions