Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19423

The Etag is not retuned with npm metadata URL when none-match header is used.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Severity:
      Medium
    • Regression:
      Yes

      Description

      The Etag is not retuned with npm metadata URL when none-match header is used.

      Have reproduced on the latest version of artifactory(6.10.3):

      curl http://RESTRICTED_IP:8081/artifactory/api/npm/npm/esutils -vvv -uadmin:password

      •   Trying RESTRICTED_IP...
      • TCP_NODELAY set
      • Connected to RESTRICTED_IP (RESTRICTED_IP) port 8081 (#0)
      • Server auth using Basic with user 'admin'

      > GET /artifactory/api/npm/npm/esutils HTTP/1.1

      > Host: RESTRICTED_IP:8081

      > Authorization: Basic RESTRICTED_TOKEN

      > User-Agent: curl/7.54.0

      > Accept: /

      >

      < HTTP/1.1 200 OK

      < Server: Artifactory/6.10.2

      < X-Artifactory-Id: 397f79ce66845c6d:222fd471:16b680a15c5:-8000

      < ETag: 35e83b025189f91413a2d9d30e72b241d566444d

       

       

      Returns a 200 OK response but when the none-match is used the 304 doesn't return the E-tag:

      curl http://Art URL:8081/artifactory/api/npm/npm/esutils -vvv -uadmin:password --header 'if-None-Match:35e83b025189f91413a2d9d30e72b241d566444d'

      •   Trying URL...
      • TCP_NODELAY set
      • Connected to URL) port 8081 (#0)
      • Server auth using Basic with user 'admin'

      > GET /artifactory/api/npm/npm/esutils HTTP/1.1

      > Host: RESTRICTED_IP:8081

      > Authorization: Basic YWRtaW46cGFzc3dvcmQ=

      > User-Agent: curl/7.54.0

      > Accept: /

      > if-None-Match:35e83b025189f91413a2d9d30e72b241d566444d

      >

      < HTTP/1.1 304 Not Modified

      < Server: Artifactory/6.10.2

      < X-Artifactory-Id: 397f79ce66845c6d:222fd471:16b680a15c5:-8000

      < Date: Tue, 18 Jun 2019 01:08:19 GMT

      <

       

        Attachments

          Activity

              People

              Assignee:
              rotemk Rotem Kfir (Inactive)
              Reporter:
              manojt Manoj Tuguru
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-19423 -
                  SYNCHRONIZED
                  • Last Sync Date: