Fix invalid session token type for container creation #900

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/create_container_session_context into master 2024-01-11 07:20:32 +00:00

Relates #899

Session context from object was used.

Relates #899 Session context from object was used.
dstepanov-yadro added 1 commit 2024-01-10 15:39:34 +00:00
[#899] containerSvc: Fix invalid session token type
Some checks failed
DCO action / DCO (pull_request) Successful in 1m23s
Vulncheck / Vulncheck (pull_request) Successful in 3m29s
Tests and linters / Tests (1.21) (pull_request) Failing after 3m58s
Build / Build Components (1.21) (pull_request) Successful in 3m46s
Build / Build Components (1.20) (pull_request) Successful in 3m52s
Tests and linters / Lint (pull_request) Successful in 4m48s
Tests and linters / Staticcheck (pull_request) Successful in 5m5s
Tests and linters / Tests (1.20) (pull_request) Successful in 7m4s
Tests and linters / Tests with -race (pull_request) Successful in 8m36s
5c0a736a25
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro reviewed 2024-01-10 15:41:13 +00:00
@ -424,2 +426,2 @@
func (ac *apeChecker) getActorAndPKFromSessionToken(st *sessionSDK.Object, cnrID cid.ID) (*user.ID, *keys.PublicKey, error) {
if !st.AssertContainer(cnrID) {
func (ac *apeChecker) getActorAndPKFromSessionToken(st *sessionSDK.Container, cnrID cid.ID) (*user.ID, *keys.PublicKey, error) {
if cnrID != undefinedContainerID && !st.AppliedTo(cnrID) {
Author
Member

Like by innerring:

if v.idContainerSet && !tok.AppliedTo(v.idContainer) {

Like by innerring: https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/79bebe4a683ceab420742577a46bfc536bc2e118/pkg/innerring/processors/container/common.go#L113
dstepanov-yadro requested review from storage-core-committers 2024-01-10 15:41:32 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-01-10 15:41:36 +00:00
aarifullin approved these changes 2024-01-11 06:06:45 +00:00
dkirillov approved these changes 2024-01-11 06:34:45 +00:00
acid-ant approved these changes 2024-01-11 07:09:10 +00:00
fyrchik approved these changes 2024-01-11 07:19:47 +00:00
Owner

Failing test is #896

Failing test is https://git.frostfs.info/TrueCloudLab/frostfs-node/pulls/896
fyrchik merged commit 5c0a736a25 into master 2024-01-11 07:20:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#900
No description provided.