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

URL ending with "/" will generate files without filename (extension only, ex. .docx) #349

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

Comments

@catalan-adobe
Copy link
Collaborator

Description
Importing url such as https://www.aami.com.au/ will generate a.docx file which can be problematic on Mac (hidden file by default).

REMARK: the issue does not occur when using default import (no custom script) as the default generateDocumentPath handles the case and forces path / to /index (and thus index.docx).

For now, to fix the issue users have to implement the same strategy in there custom script.

What about enforcing this by default and not only in generateDocumentPath

To Reproduce
Steps to reproduce the behavior:

  1. Start the AEM Importer
  2. Setup a working dummy import script with a custom generateDocumentPath
  3. Check "Save docx"
  4. Import
    => on the filesystem, notice the generated file is named .docx

Expected behavior
In any configuration case, if we there is no value of generating a file named .docx, we should enforce / => /index tranformation

Version:
16.3.15

@catalan-adobe catalan-adobe added the bug Something isn't working label May 16, 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