[jboss-jira] [JBoss JIRA] (WFCORE-3867) Space char always last char of read system property on Windows
David Lloyd (JIRA)
issues at jboss.org
Tue May 22 14:06:00 EDT 2018
[ https://issues.jboss.org/browse/WFCORE-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580527#comment-13580527 ]
David Lloyd commented on WFCORE-3867:
-------------------------------------
The real issue is where the value is coming from. System properties are well defined to be exact values, so if we read a system property inside the server and that system property ends in a whitespace or some other odd character, we *must* assume that this is intentional.
If we're processing arguments and variables from our Windows scripts wrongly and causing unintended interpretation of values, then it's the scripts that need correcting. We need to establish the provenance of the values which are coming in incorrectly and trace that history exactly before proposing a fix.
> Space char always last char of read system property on Windows
> --------------------------------------------------------------
>
> Key: WFCORE-3867
> URL: https://issues.jboss.org/browse/WFCORE-3867
> Project: WildFly Core
> Issue Type: Bug
> Components: Server
> Affects Versions: 5.0.0.Beta4
> Reporter: R Searls
> Assignee: R Searls
> Priority: Minor
>
> On Windows each system property read has a space char as the last char of string.
> This causes failures when the property represents a directory name. Calling
> tmp.toPath().toRealPath() in this situation.
> ServerEnvironment line, 434 Path resolved = tmp.toPath().toRealPath();
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list