Skip to content

Web Actions are broken #542

@elyscape

Description

@elyscape

Describe the bug
The master build of PWM can't save Web Actions to the config file and can't read ones added manually. This results in Web Actions being completely broken.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the configuration editor.
  2. Click Modules -> Authenticated -> Change Password. Note that, while these steps are for the Change Password action, this also applies to everything else that supports Web Actions.
  3. Under "Post Password Change Actions", click "Add Action".
  4. Type testaction and click "OK".
  5. Click the "Actions" button next to "testaction".
  6. Click "Add Web Service Action".
  7. Type http://google.com and click "OK" twice.
  8. Save the configuration.
  9. Go back to the configuration editor.
  10. Click Modules -> Authenticated -> Change Password.
  11. Click the "Actions" button next to "testaction".
  12. Look at the value in PwmConfiguration.xml for changePassword.writeAttributes.

Expected behavior
The configured action should remain configured in the UI. The value of changePassword.writeAttributes should be:

{"name":"testaction","description":"","webActions":[{"method":"get","headers":{},"url":"http://google.com","body":"","username":"","password":"","successStatus":[200]}],"ldapActions":[]}

Actual behavior
The configured action vanishes from the UI. The value of changePassword.writeAttributes becomes:

{"name":"testaction","description":"","webActions":[],"ldapActions":[]}

Additional context
This does not affect version 1.9.1. I haven't done a whole lot of digging, but it seems likely to have been introduced during the stored configuration refactoring during November 2019.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions