Deploying app using CLI on windows fails

Description

Deploying apps, sending events to streams fails with an internal error while using CLI on windows

The error comes from a Patten syntaxException cause by the following line

FilePathResolver.java line 78

Release Notes

None

Activity

Show:

Bhooshan Mogal August 10, 2015 at 11:27 PM

Merged PR

Bhooshan Mogal August 10, 2015 at 8:42 PM

Bhooshan Mogal August 10, 2015 at 8:22 PM

That line of code calls split on File.separator, which is "\" on windows, which is not a valid regex for String.split.

Ideally, if we were dealing with Path objects, we should be traversing using Path.getParent(). However, given that this class does a fair bit of string parsing because it essentially operates on the string that users pass on the CLI, we may have to go for a slightly non-ideal solution still using String parsing.

In future though, we should think of operating on Path objects. Currently it may not be trivial because of the various substitutions ($CDAP_HOME), and expansions (./ or ../) that we do in this class.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Components

Fix versions

Priority

Created August 10, 2015 at 5:16 PM
Updated August 10, 2015 at 11:27 PM
Resolved August 10, 2015 at 11:27 PM