Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Double posting

by syphilis (Chancellor)
on Mar 25, 2017 at 10:41 UTC ( #1185878=monkdiscuss: print w/replies, xml ) Need Help??

I've made one or three lately, and I think I'm close to working out how it has happened.

I write my post, "preview" it, then "create" it.
Then I immediately see something (insignificant) that I want to change.
So ... I change it ... and hit "create" again ... and now there are 2 posts.

Can this unfortunate state of affairs be rectified by means that don't involve more intelligent behaviour on my part ?

Update: Perhaps I was being a bit harsh on myself. Having hit "create", the only button then immediately available is an "update" button. It's the hitting of that "immediately available" update button that's creating the duplicate.
That aint right. Do I need to elaborate ? ... I reckon I could even provide a demo.


Replies are listed 'Best First'.
Re: Double posting
by kcott (Chancellor) on Mar 26, 2017 at 04:56 UTC

    G'day Rob,

    "Can this unfortunate state of affairs be rectified by means that don't involve more intelligent behaviour on my part ?"

    Perhaps, in your Display Settings, uncheck "Edit your writeup directly in the display view, instead of in a separate page ?".

    I think that removes the "Update" button after using the "Create" button; you need to use the "Edit" link for any subsequent changes. I'll check as I'm posting this and provide an update if I'm wrong. Actually, I've posted a confirmation of this behaviour, with a little more information, as an update.

    It does seem that there's some timing issue (behind the scenes) which provides access to the "Update" function before all DB writes for the initial posting have completed. I've got no access to the code, so that's just a guess: "timing" could be a race condition, timestamp granularity, or something else.

    Update (confirmation): After hitting the "Create" button, I was presented with a view of my node that looked like any other node posted by someone else. The only difference is an "Edit" link (top-right area, under "in reply to" link).

    — Ken

Re: Double posting
by LanX (Bishop) on Mar 25, 2017 at 12:30 UTC
    Lately I also created more duplicates.

    Not sure if this is related to the "recent" changes jdporter introduced, cause I couldn't replicate it. (We also had timeout issues, complicating things)

    I still think a nonce mechanism to block previews to be posted twice could be a good idea, see Avoiding accidential reposts .

    This would at least prevent all cases where duplicates originate from going back in browser history.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      If I've got it right, I created the initial post by hitting the "create" button (as per normal), then immediately decided that I wanted to make a minor change (ie replace "This malware" with "This upstream malware").
      So ... I made that change and hit the "update" button that was sitting there. But instead of updating my initial post, a second almost-identical post was created.
      (I then altered the subject line of the initial post to indicate that it should be reaped.)

        > So ... I made that change ...

        But how this? That's the crucial part.

        If you did click edit after [create] you wouldn't see an [update] but [stumbit] button.

        If you did go back in browser history, you'd see create again and produce a duplicate.

        I haven't seen [update] in normal threads, since we changed the edit system.

        As a side note: I also sometimes lost track of multiple open tabs containing edit areas, because I started research in another tab...

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1185878]
Approved by Athanasius
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2018-08-20 18:28 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (193 votes). Check out past polls.