-
Notifications
You must be signed in to change notification settings - Fork 48
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
Bean dialog - References usage #292
Comments
issue #292 fixed, added unit tests as well merge commit : deleted redundant git "master" printings
The fix causes a regression. Strings that include backslash that are part of parameter provider (Generic or array), get an additional three backslashes every time the bean dialog is closed by the user. Steps to Reproduce Open building block with parameter provided that has a string field. Fill backslash in the input. Click on the OK button and open again. |
The fault is probably in the added code block in the ObjectArrayParameterProvider and in the GenericObjectParameterProvider: StringBuilder propertiesSb = new StringBuilder();
for (String line : propertiesString.split("\\r?\\n")) {
if (line.contains("\\") && !line.contains("\\:"))
line = line.replace("\\", "\\\\");
propertiesSb.append(line+"\r\n");
} |
Backslashes are also added to spaces. |
When references to file paths being used in bean dialog the input is saved without backslashes.
example : ${run:view} = F:\views\r - in bean dialog the value is F:viewsr
The text was updated successfully, but these errors were encountered: