-
Notifications
You must be signed in to change notification settings - Fork 30
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
web action does not have web
in the url, resulting in an invalid link
#823
Comments
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-3397 |
When using the incorrect config mentioned above, but downgrading the CLI to |
I see the commit where it was working in 9.3 but not in 10.x cli - web-export must be in annotations as per spec: https://github.com/adobe/aio-lib-runtime/commit/4cec293955ce3dd73331f691495bbbb561d94160#diff-3a11a46e9fc8a91f5f4a114[…]a8573e864966b8f088c46faR1952 (but I don't think it's the whole picture since it did file it under the web actions section) |
I poked around with incorrect configs and 10.3.1 CLI versions - I have these 4 permutations of sequences: first:
actions: '__first'
web-export: raw
annotations:
web-custom-options: true
second:
actions: '__second'
web-export: raw
web: true
annotations:
web-custom-options: true
third:
actions: '__third'
annotations:
web-custom-options: true
web-export: raw
fourth:
actions: '__fourth'
web: true
annotations:
web-custom-options: true
web-export: raw This is the CLI output:
Aside from using incorrect configs, there are some oddities in the output: |
Note: even though To investigate, update code that is not up to the above spec and write failing tests, then fix:
|
Expected Resultre: #823 (comment)
Expected Outputweb actions:
-> https://foo.adobeioruntime.net/api/v1/web/bar/second
-> https://foo.adobeioruntime.net/api/v1/web/bar/third
-> https://foo.adobeioruntime.net/api/v1/web/bar/fourth
non-web actions:
-> https://foo.adobeioruntime.net/api/v1/bar/first |
Description
A web action does not have
web
in the url reported by the CLI, thus when calling it, it is treated as a non-web action and requires auth.Might be relevant:
web-export
annotation is in the wrong placeweb-custom-options
annotation is presentExpected
The web action url reported by the CLI has a valid web url.
Actual
The web action url reported by the CLI does not have a valid web url.
Logs for Repro
aio app deploy
output:manifest.yaml
:The text was updated successfully, but these errors were encountered: