[jboss-jira] [JBoss JIRA] (WFCORE-3347) add-content operation of deployment resource contains alternative attributes that doesn't exist

Brian Stansberry (JIRA) issues at jboss.org
Thu Oct 19 12:38:00 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-3347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13479512#comment-13479512 ] 

Brian Stansberry commented on WFCORE-3347:
------------------------------------------

[~soul2zimate] Sounds like a bug. That if test can be removed altogether since if !isFlagPresent the method will have returned. Double checking is wasteful and a source of bugs like this.

> add-content operation of deployment resource contains alternative attributes that doesn't exist
> -----------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-3347
>                 URL: https://issues.jboss.org/browse/WFCORE-3347
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Claudio Miranda
>            Assignee: Chao Wang
>            Priority: Minor
>
> add-content operation contains "content" attribute, 
> {code}
> /deployment=*:read-operation-description(name=add-content)
> {code}
> "content" attribute it is a list of other attributes as: input-stream-index, hash, bytes, url. They themselves contains the alternatives metadata as
> {code}
> "url" => {
>     "type" => STRING,
>     "description" => "The URL at which the deployment content is available for upload to the domain's or standalone server's deployment content repository.. Note that the URL must be accessible from the target of the operation (i.e. the Domain Controller or standalone server).",
>     "expressions-allowed" => false,
>     "required" => false,
>     "nillable" => true,
>     "alternatives" => [
>         "input-stream-index",
>         "hash",
>         "bytes",
>         "path",
>         "relative-to",
>         "empty"
>     ],
>     "min-length" => 1L,
>     "max-length" => 2147483647L
> },
> {code}
> But the following attributes doesn't exist: path, relative-to, empty 



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list