Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 14 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mmaharjan_0067
      last edited by

      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

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @mmaharjan_0067
        last edited by

        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

        1 Reply Last reply Reply Quote 1
        • M Offline
          mmaharjan_0067
          last edited by

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

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation