File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/org/mitre/synthea/helpers Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -213,12 +213,12 @@ private String escapeForPropertiesFile(String path) {
213
213
String moduleFilename = parts [0 ];
214
214
String jsonPath = parts [1 ];
215
215
216
- // Escape only the module filename part for properties file format
216
+ // Escape the module filename part for properties file format
217
217
String escapedModuleFilename = moduleFilename .replace (" " , "\\ " ).replace (":" , "\\ :" );
218
218
219
- // JSONPath part stays clean - no escaping needed for JSONPath syntax
220
- // The properties file format will handle this correctly
219
+ // CRITICAL FIX: Also escape spaces in the JSONPath part for Properties file format
220
+ // Properties files treat spaces as delimiters, so we need to escape them
221
+ String escapedJsonPath = jsonPath .replace (" " , "\\ " );
221
222
222
- return escapedModuleFilename + "\\ :\\ :" + jsonPath ;
223
- }
224
- }
223
+ return escapedModuleFilename + "\\ :\\ :" + escapedJsonPath ;
224
+ }
You can’t perform that action at this time.
0 commit comments