[Keeping notes here because this is so big my head is exploding]
OK, after fun multi-hour adventures with debug code that failed to show up eventually I realised that I was running multiple copies of the ESN bits and they were stealing my debug code.
Debug code eventually tells me that $entry is already truncated at that point. That's passed in from (*grep, grep*) the crosspost() function and passed to the crosspost function in term from ... *grep grep* these are the only calls I can see from inside cgi-bin:
DW/Worker/XPostWorker.pm: my $result = $delete ? $acct->delete_entry(\%auth, $entry) : $acct->crosspost(\%auth, $entry); DW/External/Account.pm: my $result = $xpost_protocol->crosspost($self, $auth, $entry, $xpost_info); DW/External/Account.pm: my $result = $xpost_protocol->crosspost($self, $auth, $entry, $xpost_info, 1);
Note to self: need to grep htdocs and ssldocs to be sure.
no subject
OK, after fun multi-hour adventures with debug code that failed to show up eventually I realised that I was running multiple copies of the ESN bits and they were stealing my debug code.
Debug code eventually tells me that $entry is already truncated at that point. That's passed in from (*grep, grep*) the crosspost() function and passed to the crosspost function in term from ... *grep grep* these are the only calls I can see from inside cgi-bin:
DW/Worker/XPostWorker.pm: my $result = $delete ? $acct->delete_entry(\%auth, $entry) : $acct->crosspost(\%auth, $entry);
DW/External/Account.pm: my $result = $xpost_protocol->crosspost($self, $auth, $entry, $xpost_info);
DW/External/Account.pm: my $result = $xpost_protocol->crosspost($self, $auth, $entry, $xpost_info, 1);
Note to self: need to grep htdocs and ssldocs to be sure.