Hi all,

We seem to be encountering an issue with the git-path plugin related to 
URLs with spaces in them.

Sample error when passing url-encoded spaces:
jvm 1    | 2025-05-06 15:37:40,506 INFO  [151@MessageListener for 
MaterialUpdateListener] MaterialDatabaseUpdater:124 - [Material Update] 
Modification check failed for material: 
[url=https://dev.azure.com/MyOrg/ProjectName%20Has%20Spaces/_git/some_repo, 
username=myUser, password={{SECRET:[logins][myUser.PAT]}}, 
auto_update=true, branch=main, path=path/to/folder/] cause: 
java.lang.RuntimeException: The plugin sent a response that could not be 
understood by Go. Plugin returned with code '500' and the following 
response: '"Invalid URL format"'

Sample error when passing raw spaces:
2025-05-06 11:25:36.547 | jvm 1    | 2025-05-06 15:25:36,542 INFO 
 [159@MessageListener for MaterialUpdateListener] 
MaterialDatabaseUpdater:124 - [Material Update] Modification check failed 
for material: [ url=https://dev.azure.com/MyOrg/ProjectName Has 
Spaces/_git/some_repo, username=myUser, 
password={{SECRET:[logins][myUser.PAT]}}, auto_update=true, branch=main, 
path=path/to/folder/  ] cause: java.lang.RuntimeException: The plugin sent 
a response that could not be understood by Go. Plugin returned with code 
'500' and the following response: '"Invalid URL format"'

These same repositories work fine with the main Git material, but we want 
to use the git-path plugin for its filtering abilities.

Is there a way to get the plugin working with spaces (or other special 
characters) in the repository URL?

Is this a bug that we should open a GitHub issue for?

Any help or advice is appreciated.

Regards,
Jason Smyth

-- 
You received this message because you are subscribed to the Google Groups "GoCD 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/go-cd/370d580d-2f2b-479d-a16e-9804842badf0n%40googlegroups.com.

Reply via email to