Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36819 32 d 14 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 63 d 14 h amit /trunk/ Fixed Idempotency Key Handling  
33793 656 d 16 h ranu /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/interceptor/ post interceptor manage log dor double click failure  
33788 657 d 16 h ranu /trunk/ aging maintain  
33761 669 d 14 h ranu /trunk/profitmandi-fofo/src/main/ commit post interceptor if key is not available return true  
33756 669 d 16 h ranu /trunk/profitmandi-fofo/src/main/ post interceptor for every post handling