Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1219

CREATE DATA SET does not report Location header

    Details

      Description

      A POST to create a resource should report the URI of the resource in a Location header.

      1. Extent the test suite to verify this.
      2. Modify the code to generate an appropriate location header.

      Note: It is possible for their to be multiple URIs that will address the new data set. However the reported Location can use the effective URL of the request to generate the returned URI.

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        Fixed in df35001d3808261a95c0e7d566f7b1064b2f9629

        Note: I did not write a unit test for this. It is actually quite a PITA. I did verify that the Location header is present and that the URL reported is valid. Writing a test involves duplicating the logic around how we issue the request in order to have access to the response so we can check the response header. (The RemoteRepository does not expose this metadata.)

        Show
        bryanthompson bryanthompson added a comment - Fixed in df35001d3808261a95c0e7d566f7b1064b2f9629 Note: I did not write a unit test for this. It is actually quite a PITA. I did verify that the Location header is present and that the URL reported is valid. Writing a test involves duplicating the logic around how we issue the request in order to have access to the response so we can check the response header. (The RemoteRepository does not expose this metadata.)

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: