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

Scoped packages fail for NPM #18

Open
jgriffith-hbs opened this issue Dec 12, 2024 · 1 comment
Open

Scoped packages fail for NPM #18

jgriffith-hbs opened this issue Dec 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jgriffith-hbs
Copy link

jgriffith-hbs commented Dec 12, 2024

When I call codeartifact requesting a scoped package @my-org/package1, it returns results

GET https://testdomain-12345567890.d.codeartifact.us-east-1.amazonaws.com/npm/testrepo/@my-org%2fpackage1/
Authorization: Bearer $AWS_CODEARTIFACT_AUTH_TOKEN

returns

{
  "_id": "@my-org/package1",
  "name": "@my-org/package1"
}

When I request the same package through the proxy, I get an error.

GET http://localhost:8080/testrepo/@my-org%2fpackage1/
{
  "success": false,
  "error": "1 validation error detected: Value '[@my-org/package1]' at 'versionSelection.targetedVersions' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 255, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: [^#/\\p{C}\\p{IsWhitespace}]+]"
}

Can we fix the proxy so it works with scoped npm packages?

@sktan sktan self-assigned this Dec 12, 2024
@sktan sktan added the bug Something isn't working label Dec 12, 2024
@jeff-cook
Copy link

I'm looking to use this, but scoped/namespaced is a requirement for us.

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

3 participants