G-Node / g-node-portal

G-Node portal repository (for the moment only docs)
https://portal.g-node.org/data/
4 stars 2 forks source link

Incorrect feedback following certain share operations #55

Open apleonhardt opened 12 years ago

apleonhardt commented 12 years ago

Scenario: This bug is easily seen for segments 4 and 5 on my development server (141.84.42.103:8003). Logged in as bob2, I GET /electrophysiology/segment/4/acl which indicates that segment_4 is shared with ray. By POSTing to .../acl, I change sharing to user bob. Both the immediate answer and subsequent GETs reflect this. However, the same operation for segment_5 results in curious behavior: The response to my POST indicates that sharing was successfully changed to bob (HTTP 200). A subsequent GET shows that no sharing change was made.

Proposed solution: I'm not certain what's at miss here. In any case, a failure to perform the requested change needs to be obvious and return an error code.

apleonhardt commented 12 years ago

Addendum: Initial assignments appear to work correctly; it's changes that are ignored.

asobolev commented 12 years ago

able to reproduce. seems like it's caching problem. is the database everything is fine, the dev server always returns the cached version.. strange.