Skip to content

cannot create a sequence with an action that has web:yes property and require-adobe-auth: true annotation #881

@shazron

Description

@shazron

Description

Using the app.config.yaml manifest, you cannot create a sequence with an action that has the web:yes property and require-adobe-auth: true annotation set, this results in an error. The other 3 combinations are fine.

Config

app.config.yaml

application:
  actions: actions
  web: web-src
  runtimeManifest:
    packages:
      test-app:
        license: Apache-2.0
        actions:
          webYesAuthNoAction:
            function: actions/generic/index.js
            web: 'yes'
            runtime: nodejs:22
            inputs:
              LOG_LEVEL: debug
            annotations:
              require-adobe-auth: false
              final: true
          webYesAuthYesAction:
            function: actions/generic/index.js
            web: 'yes'
            runtime: nodejs:22
            inputs:
              LOG_LEVEL: debug
            annotations:
              require-adobe-auth: true
              final: true
          webNoAuthNoAction:
            function: actions/generic/index.js
            web: 'no'
            runtime: nodejs:22
            inputs:
              LOG_LEVEL: debug
            annotations:
              require-adobe-auth: false
              final: true
          webNoAuthYesAction:
            function: actions/generic/index.js
            web: 'no'
            runtime: nodejs:22
            inputs:
              LOG_LEVEL: debug
            annotations:
              require-adobe-auth: true
              final: true
        sequences:
          # SUCCESS
          webXAuthNoSequence:
            actions: webNoAuthNoAction, webYesAuthNoAction
          # SUCCESS
          webNoAuthYesSequence:
            actions: webNoAuthYesAction
          # FAILURE
          webYesAuthYesSequence:
            actions: webYesAuthYesAction

Repro Steps

  1. Create an App Builder project with aio-cli@11.x
  2. Create the generic action at the path specified in the app.config.yaml above
  3. Put the yaml above as your app.config.yaml
  4. Run aio app clean && aio app deploy
  5. Note the error:
❯ aio app clean && aio app deploy
✔ Cleaned build artifacts for 'application'
Build artifacts cleaned up successfully!
✔ Built 4 action(s) for 'application'
✔ Building web assets for 'application'
✖ Deploying actions for 'application'
 ›   Error: PUT https://deploy-service.app-builder.adp.adobe.io/runtime/api/v1/namespaces/52381-858dimcaribou/actions/test-app-prod
 ›   /webYesAuthYesSequence Returned HTTP 400 (Bad Request) --> "Sequence component does not exist."

You might have to do this to reset your deploy after:

  1. aio app undeploy
  2. aio rt package delete test-app --recursive

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions