Skip to content

Windows getURI error fix - #340

Open
sudhanshu-raj wants to merge 1 commit into
mekomsolutions:mainfrom
sudhanshu-raj:windows-uri-error-fix
Open

sudhanshu-raj wants to merge 1 commit into
mekomsolutions:mainfrom
sudhanshu-raj:windows-uri-error-fix

Conversation

@sudhanshu-raj

Copy link
Copy Markdown

This error which is URISyntaxException occurs on Windows, because when we scan and find the jar for initializer module it returns the path including backslash() and when we calling getURI() which ends on creating new URI object and because due to opaque URI scheme \ are not allowed in the file path like C:\Users\test\.m2\repository\org\openmrs\module\initializer-api\2.12.0\initializer-api-2.12.0.jar!/messages.properties and that's where it throws error.

This was hidden from initializer test cases because module test against the target/ dir and it generated forward slashes(/) for those paths that's why no error but this error cause of another module try to access and do same because then it access those files form direct m2 local folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant