Wrong Entity Checked for Artifact Deployment

Description

ArtifactHTTPHandler#addArtifact currently performs a check on ApplicationID instead of the expected ArtifactID:

// Perform auth checks outside BodyConsumer as only the first http request containing auth header // to populate SecurityRequestContext while http chunk doesn't. BodyConsumer runs in the thread // that processes the last http chunk. accessEnforcer.enforce(new ApplicationId(namespace.getNamespace(), artifactName), authenticationContext.getPrincipal(), StandardPermission.CREATE);

Release Notes

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Created February 4, 2022 at 9:59 PM
Updated February 5, 2022 at 2:20 AM
Resolved February 5, 2022 at 2:20 AM