adobe / adobe/aio-cli-plugin-aem

When uploading a file with more than one dot, it's name is changing

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
11
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour
File name should remain same

### Actual Behaviour
File name is changing

### Reproduce Scenario (including but not limited to)
When a file name has multiple dots in the name, second last dot has been converted to hyphen.

#### Steps to Reproduce
Upload a file with name for example index.d.ts with aem:upload commmand.
File name has been changed to index-d.ts in the AEM instance.

#### Platform and Version
AEMaaCS

#### Sample Code that illustrates the problem
file name: index.d.ts
command aio-aem aem:upload -h {aem_instance_url} -c admin:admin -t /content/dam/ -d destinationFoldetinAEM

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Research direction

Start at the aem:upload command and reproduce the issue with a file named index.d.ts using the documented aio-aem command. Trace where the uploaded filename is handled; done means filenames containing multiple dots remain unchanged in the AEM instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.