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=Test
    

    However, when I run something like this (with or without quotes):

    pgutil assets metadata get --path="metadata-test/v1/1 - Normal.txt" --feed=Test
    

    I get this without quotes:

    unexpected argument: -
    unexpected argument: normal.txt
    

    and 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


  • inedo-engineer

    Hi @mmaharjan_0067

    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.txt
    

    Thanks,
    Alana



  • Thanks! Just did more investigation to figure out it seems to a be WAF issue.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation