[jboss-jira] [JBoss JIRA] (WFCORE-74) Use 'filesystem-path' arbitrary descriptor for attributes/params that represent a path

Harald Pehl (JIRA) issues at jboss.org
Fri Aug 7 09:41:04 EDT 2015


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

Harald Pehl commented on WFCORE-74:
-----------------------------------

Another use are attributes holding JNDI names. The console could generate some basic validation rules (like needs to start with 'java:/' or 'java:jboss/') for such attributes. We already have some of those validations in place (like in datasource), but having it in the metadata would enable us to generate such validation rules. 


> Use 'filesystem-path' arbitrary descriptor for attributes/params that represent a path
> --------------------------------------------------------------------------------------
>
>                 Key: WFCORE-74
>                 URL: https://issues.jboss.org/browse/WFCORE-74
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: ehsavoie Hugonnet
>
> Attribute/parameter descriptions allow "arbitrary descriptors".[1]
> Perhaps we could add something like this to that list:
> filesystem-path -- boolean -- indicates the attribute value represents a filesystem
> path.  The absence of this item implies false.
> The CLI could then check for that and help the user with escaping if true. Currently CLI users need to escape '\' in low-level operation values, but they don't in commands. It's not necessary in commands because the CLI statically knows what the command is about; with a low level operation it can only do things based on the metadata provided by the server.
> We can't guarantee that every 'path' attribute would have that set
> properly though. So it's not a guarantee.
> This is really a cross-request between WFCORE and WFLY; WFCORE with the needed base support and then configuring any relevant params/attributes in both code bases.
> Also, consider other similar cases -- 'url' as a possible example.
> [1] https://docs.jboss.org/author/display/WFLY9/Admin+Guide#AdminGuide-ArbitraryDescriptors



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list