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

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

Open
catalan-adobe opened this issue Feb 14, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@catalan-adobe
Copy link

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 catalan-adobe added the bug Something isn't working label Feb 14, 2024
@catalan-adobe catalan-adobe changed the title [import] Caching issue when url path is both filename and subpath [import] Caching issue when url paths iare both filename and subpath Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant