Skip to content

FIO-11537: Auth headers were reading from wrong options object - #115

Open
KirylDrutsko wants to merge 2 commits into
masterfrom
fix/FIO-11537-auth-headers-options
Open

KirylDrutsko wants to merge 2 commits into
masterfrom
fix/FIO-11537-auth-headers-options

Conversation

@KirylDrutsko

@KirylDrutsko KirylDrutsko commented Nov 12, 2026 •

Copy link
Copy Markdown

https://formio.atlassian.net/browse/FIO-11537

Before the fix: the submissions command checks options.dstOptions.key and options.dstOptions.adminKey to decide whether to set authentication headers, but then reads the header value from options.key and options.adminKey — the top-level CLI options object which is only populated by bare --key flags, not by --dstKey or --dstAdminKey. When users pass destination-specific key flags, the resulting request sends the string "undefined" as the header value or sends the wrong key entirely.
Fix makes it to read read value from options.dstOptions when setting the headers

@KirylDrutsko

Copy link
Copy Markdown
Author

The failing test is not connected to my changes.
It fails because POST /project against formio/formio-enterprise:latest returns 503 Service Unavailable. It seems that the container goes to the license restricted mode due to expired license key

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

Labels

None yet

1 participant