Skip to content
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

bug: wildfly_attribute does not support list attributes #73

Open
gclawes opened this issue May 3, 2023 · 0 comments
Open

bug: wildfly_attribute does not support list attributes #73

gclawes opened this issue May 3, 2023 · 0 comments

Comments

@gclawes
Copy link

gclawes commented May 3, 2023

The wildfly_attribute resource does not support modifying attributes of type [LIST].

Attributes like /subsystem=undertow/server=default-server/http-listener disallowed-methods are type [LIST]: https://docs.wildfly.org/20/wildscribe/subsystem/undertow/server/http-listener/index.html

write-attribute fails when setting a space-separated list of attributes "HEAD TRACE TRACK":

[2023-05-03T15:37:00-04:00] INFO: Running JB-CLI(9992): /subsystem=undertow/server=default-server/https-listener=https:write-attribute(name=disallowed-methods,value=HEAD\ TRACE\ TRACK)
[2023-05-03T15:37:01-04:00] DEBUG: {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0097: Wrong type for 'disallowed-methods'. Expected [LIST] but was STRING",
    "rolled-back" => true
}

According to the docs (https://docs.wildfly.org/20/wildscribe/index.html) there is a separate set of list-* methods, specifically list-add, list-clear, list-get, list-remove to add/modify/clear list attributes. There is also a set for map attributes.

wildfly_attribute needs to be able to set attributes using these special list/map attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant