jeshyr: Blessed are the broken. Harry Potter. (Default)
Ricky Buchanan ([personal profile] jeshyr) wrote in [site community profile] dw_dev 2011-10-13 11:23 am (UTC)

[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.

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org