in reply to Oddity with Scratchpad

Some investigation showed that the user_scratchpad field for wimv isnt set, thus his homenode shows no scratchpad (or him a create button) - The pad is there however.

I can't quite see how this can come about, since the code that creates the scratchpad also sets this value at the same time. I was able to repeat this feat by picking another new user from Newest Nodes at random, and clicking on a self-made pad:// link to their pad. The homenode there also shows "None".

C.

Replies are listed 'Best First'.
Re^2: Oddity with Scratchpad
by demerphq (Chancellor) on Jul 30, 2004 at 00:29 UTC

    I agree this is a bit weird. I believe that there is a race condition somewhere that causes the user_scratchpad field to get overwritten, in fact it appears this race condition also means that the "restrict duplicates" on the scratchpad nodetype doesn't actually restrict them. However unlike you I havent been able to duplicate this behaviour so im a bit stumped as to where it is. Admittedly I havent had the time to really analyze its cause.

    I have however fixed the 50 or so users who this has effected, and will be monitoring it to see how often it happens in the future, and will do my best to track the cause down and fix it.

    Oh boy not having transactions makes pmdev life a real blast doesnt it?


    ---
    demerphq

      First they ignore you, then they laugh at you, then they fight you, then you win.
      -- Gandhi