adobe / adobe/reactor-sandbox

Failing to load hostedLibFiles as code adds %20%20 to `hostedLibFilesBaseUrl`

Open Beginner friendly
#111 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9
Forks
11
PR merge metrics
No merged PRs in 30d

Description

See this line of code: https://github.com/adobe/reactor-sandbox/blob/9af2660c7ffaaaa994c1718dd1f8c8b88f0f57d6/src/tasks/helpers/augmentExtensions.js#L233

The following code:

```javascript
extensionOutput.hostedLibFilesBaseUrl = `/hostedLibFiles/\
${extensionDescriptor.name}/${extensionDescriptor.version}/`;
```

As it is in multiple lines then returned line currently adds two spaces (`%20%20`) to the `hostedLibFilesBaseUrl`.

This breaks the hosted file functionality when library is built, all requests fails in network tab because of the 2 spaces.

Contributor guide

Open the contributing guide

Research direction

Start in src/tasks/helpers/augmentExtensions.js at line 233 and inspect how the multiline hostedLibFilesBaseUrl is assembled. Build a library with hosted files and verify that requests use a URL without encoded spaces (%20).

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
90/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.