Skip Menu |

This queue is for tickets about the LJ-Simple CPAN distribution.

Report information
The Basics
Id: 14631
Status: resolved
Priority: 0/
Queue: LJ-Simple

People
Owner: Nobody in particular
Requestors: PETEK [...] cpan.org (weekly)
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.13
Fixed in: (no value)



Subject: LJ::Simple deleting entries instead of changing security
Running the sample friends-only script deletes public posts instead of setting them to friends-only. This is a pretty severe bug :-)
[guest - Sat Sep 17 13:51:20 2005]: Show quoted text
> Running the sample friends-only script deletes public posts instead of > setting them to friends-only. This is a pretty severe bug :-)
Now that I have a better understanding, it deleted some older ones but kept newer ones intact. I don't have a way to reproduce, unfortunately.
[guest - Sat Sep 17 13:59:10 2005]: Show quoted text
> Now that I have a better understanding, it deleted some older ones but > kept newer ones intact. I don't have a way to reproduce, > unfortunately.
This is very odd; all the script does is download each journal entry and if the entry is public, it updates the protection to be friends only and then pushes the entry back to the server. The *only* way in which this would result in an entry being deleted is if the entry was empty - the way you delete an entry via the LiveJournal protocol is to set the entry to an empty string. I've added a check in the code to ensure that this doesn't happen, but without test cases to play with, its very hard to fully debug this.
Operator malfunction, please disregard.