Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
`pgutil assets metadata get` fails when filename contain spaces
-
Hi team,
I’ve run into an issue with pgutil when trying to get metadata for assets which have file names contain spaces, where We are using Proget v2025.8 and pgutil v2.1.13, and this is being run on CMD on windows.
Running something like this works fine:
pgutil assets metadata get --path=metadata-test/v1/file1.txt --feed=TestHowever, when I run something like this (with or without quotes):
pgutil assets metadata get --path="metadata-test/v1/1 - Normal.txt" --feed=TestI get this without quotes:
unexpected argument: - unexpected argument: normal.txtand this with quotes:
'<' is an invalid start of a value. Path: $ | LineNumber: 1 | BytePositionInLine: 0.I can see the file and metadata existing on proget, but it looks like pgutil isn’t correctly handling paths with spaces when passing them through to the ProGet API.
Could we get a fix for this?
Thanks,
Manish -
The "unexpected argument" running without quotes is expected, but it works fine when I run with quotes. I'm afraid I can't reproduce this.
I would check under Admin > Diagnostic Center to see if anythings logged. Alternatively, you may need to query the API by doing something like this:
curl http://server:8624/endpoints/Test/metadata/metadata-test/v1/1%20-%20Normal.txtThanks,
Alana -
Thanks! Just did more investigation to figure out it seems to a be WAF issue.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login