Skip to content

Scoped packages fail for NPM  #18

Description

@jgriffith-hbs

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions