hydroserver2 / hydroserver

Documentation and issue tracker for HydroServer and related applications
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

HydroShare Patch Endpoint Broken #177

Open daniel-slaugh opened 1 month ago

daniel-slaugh commented 1 month ago

Steps to Reproduce

Send a patch request to http://localhost:8000/api/data/things/9344a3d4-a45a-4529-b731-b51149b4d1b8/archive with the body:

{thingId: '9344a3d4-a45a-4529-b731-b51149b4d1b8', publicResource: false }

Expected Behavior

This should update the HydroShare resource privacy and return the updated hydroShareArchive object

Actual Behavior

It does nothing

Any additional comments?

I did this from the Data Management website, testing to see if updating a site's privacy will also update the archive's privacy

daniel-slaugh commented 1 month ago

After looking at this some more, it does send a response, but it takes 2 minutes for some reason.

It also looks like the archive object isn't being updated even though the api sends back a 203. The problem is the same for patching other parts of the archive object. I removed a couple of the datastreams selected for archive. The patch request sent back a 203, but the archive wasn't updated.