Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36819 17 d 13 h amit /trunk/profitmandi-fofo/src/main/ Fix idempotency dedup to be server-authoritative (content + partner scoped)

PostInterceptor now keys duplicates on sha256(fofoId|method|uri|bodyHash) for
mutating methods only, instead of the client-supplied IdempotencyKey header.
The header was rotated per-request by the frontend (and old/sticky clients),
so identical submissions produced distinct keys and were never deduped - e.g.
a create-offer burst created 147 duplicate rows. Keying on the request body
makes dedup independent of client behaviour; partner scoping prevents cross-
partner collisions; distinct payloads (one-offer-per-partner) are unaffected.
GET/HEAD are now never deduped (removes spurious GET 400s).

common.js: attach IdempotencyKey only to mutating methods; stop rotating the
key on every ajaxComplete (kept reset on ajaxSuccess only). version 355.
 
36510 48 d 13 h amit /trunk/ Fixed Idempotency Key Handling  
33793 641 d 15 h ranu /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/interceptor/ post interceptor manage log dor double click failure  
33788 642 d 15 h ranu /trunk/ aging maintain  
33761 654 d 13 h ranu /trunk/profitmandi-fofo/src/main/ commit post interceptor if key is not available return true  
33756 654 d 15 h ranu /trunk/profitmandi-fofo/src/main/ post interceptor for every post handling