Ticket #997 (new defect)

Opened 4 years ago

Last modified 4 years ago

ccTiddly - 409 conflict on saving.

Reported by: simonmcmanus Owned by: simonmcmanus
Priority: major Milestone: ccTiddly 1.9
Component: core Version:
Severity: undefined Keywords:
Cc:

Description

In certain situation users are presented with a 409 conflict error when they attempt to save a tiddler.

Its not clear what is causing this to occur but it appears to happen when multiple save request are sent.

Notably when a second save request has been sent before receiving confirmation that the first save request was successful.

It is possible that a TiddlyWiki bug is sending the 2nd save request.

Change History

Changed 4 years ago by simonmcmanus

  • milestone changed from ccTiddly 2.x to ccTiddly 1.9

Changed 4 years ago by FadingSun

As i am affected by this in ccTiddly 1.8.1 i investigated a little bit. This bug always occurs when you try to change an already exisiting tiddler in another session than the one it was created in. Simple testcase:

create tiddler "TestMe?", save, reload the page, edit, click on done and get prompted with the 409.

The cause (as far as i have understood the code) seems to be, when clicking on done some information about the tiddler is gathered from the div element with the id "tiddlerTestMe" which is located inside of the div with id="displayArea". One bit of information that will be retrieved is the attribute server.page.attribute, the problem is, none of the divs inside of displayArea has such an attribute and therefor it is always undefined, will be set to 0 which is not the same as the revision of this tiddler on the server (at least 1) .. anyhow the div inside of the div with id="storageArea" that corresponds to the tiddler being changed contains the attributed that is needed ..

Hope that helps, the tool looks good but cannot be used with this problem.

Changed 4 years ago by simonmcmanus

Thanks for having a look at this.

I must admit I am struggling to replicate this issue after the 1.8.5 release.

Even when I follow your steps :

1 .. open ccTiddly default workspace ( http://127.0.0.1) 2 .. Log in with username 3 .. create Tiddler called "TestMe??" 4 .. Logout 5 .. Login 6 .. Click edit on the tiddler "TestMe??" 7 .. Change the text 8 .. Click done.

My changes are updated successfully, even after a page really. Do you still experience the problem on ccTiddly 1.8.5?

Changed 4 years ago by FadingSun

Oh .. there is a 1.8.5?

Ok found it. Now the Problem is gone, i can change all my tiddlers that previously refused to beeing updated.

Note: See TracTickets for help on using tickets.