While trying to help wimv (a new monk) in the CB, I suggested posting a snippet to their scratch pad. wimv claimed it was there, but my attempts at getting to it from there homenode didn't work because it said "None". Finally, testing a hunch I followed the link from the CB and lo and behold it was there.

What's up with that? Is there a bug if you create your own pad directly from a link to your pad and not from your homenode?

Cheers - L~R

Update: According to wimv, if you do create it this way, you can not then have it show up on your homenode by clicking on the create link there as it is already filled in.
s/low/lo/ per edan

Replies are listed 'Best First'.
Re: Oddity with Scratchpad
by castaway (Parson) on Jul 25, 2004 at 17:46 UTC
    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.

      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


Re: Oddity with Scratchpad
by Dietz (Curate) on Jul 25, 2004 at 16:23 UTC
    It seems there was a checkbox in 'Edit your user information' as stated in:
    Make scratch pad public (in node: How do I change my home node?)

    Also in my case there is only a link named 'Edit scratchpad' instead of a checkbox to make it public.

    Dietz' scratchpad

    Regards,
    Dietz


    Update: added pad link (though my home node still says 'Scratchpad: None')

    Update 2 (Jul 30, 2004): thanks to demerphq on manually fixing affected accounts my scratchpad is now showing up