marklogic/marklogic-samplestack — pull request #356 by grechaw (2014-12-05 00:20:16+00:00)
Title: Reputation bugfix

This PR fixes reputation issues #225 .

Previously, voting affected the VOTERs reputation. This was rather wrong. After this fix, voting affects the owner of the voted post, which is what the requirements clearly state. I had bogus tests before, in which people were voting for themselves, and so the bug was not visible.

Note that during this fix I found that there is definitely something wrong with transactions on MarkLogic HEAD.

This PR works perfectly well with EA-3 server and Java API, but NOT with HEAD anymore. I suspect that even before this PR, the transaction issue will cause failures, but after, that's definitely the case (transactions are somewhat more extensively leveraged in this solution)