Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-2036

Rest API "wget .../searchService/artifact?..." -> http status 204 (no content)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.5, 2.2.8
    • None
    • None
    • Ubuntu 20.04, Tomcat 8.5.71

    Description

      When I use the command

      wget --spider '.../searchService/artifact?...v=LATEST'

      I expect to get the latest JAR, WAR or PDF file of the queried artifact.

      This works as expected when I do my query for an artifact which contains JAR files. But it does not work when I do the query for an artifact which contains WAR files as you can see below ..

      $ wget --spider 'http://localhost:8080/archiva/restServices/archivaServices/searchService/artifact?r=internal&g=ch.nextstride.gui&a=NsMax&v=LATEST'
      Spider mode enabled. Check if remote file exists.
      --2022-01-12 17:20:11--  http://localhost:8080/archiva/restServices/archivaServices/searchService/artifact?r=internal&g=ch.nextstride.gui&a=NsMax&v=LATEST
      Resolving localhost (localhost)... ::1, 127.0.0.1
      Connecting to localhost (localhost)|::1|:8080... connected.
      HTTP request sent, awaiting response... 204
      Remote file exists.
      $ curl -iv 'http://localhost:8080/archiva/restServices/archivaServices/searchService/artifact?r=internal&g=ch.nextstride.gui&a=NsMax&v=LATEST'
      *   Trying ::1:8080...
      * TCP_NODELAY set
      * Connected to localhost (::1) port 8080 (#0)
      > GET /archiva/restServices/archivaServices/searchService/artifact?r=internal&g=ch.nextstride.gui&a=NsMax&v=LATEST HTTP/1.1
      > Host: localhost:8080
      > User-Agent: curl/7.68.0
      > Accept: */*
      >
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 204
      HTTP/1.1 204
      < Set-Cookie: JSESSIONID=99DB93EFA7840255632173DEFD1D3BAF; Path=/archiva; HttpOnly
      Set-Cookie: JSESSIONID=99DB93EFA7840255632173DEFD1D3BAF; Path=/archiva; HttpOnly
      < Date: Wed, 12 Jan 2022 16:22:57 GMT
      Date: Wed, 12 Jan 2022 16:22:57 GMT
      
      <
      * Connection #0 to host localhost left intact

      The Archiva Web-GUI shows these entries as you can see in the attached Screenshots 'archiva_web_gui_01.png' and 'archiva_web_gui_02.png'

      Attachments

        1. archiva_web_gui_02.png
          31 kB
          Kilian Felder
        2. archiva_web_gui_01.png
          23 kB
          Kilian Felder

        Activity

          People

            Unassigned Unassigned
            kfelder Kilian Felder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: