kaberett: Chibi Zuko stands on a tiny rock dinosaur spouting water (zuko-dinosaur)
kaberett ([personal profile] kaberett) wrote in [site community profile] dw_dev_training2013-06-13 02:00 pm

Bug 4176 - bizarre broken behaviour

Here is my pull request.

Here is the Bugzilla entry, plus the diff of the draft patch I am building on.

The idea is that we want to add a "User:" line to every support notification e-mail, indicating who was responsible for the activity prompting the notification.

[personal profile] fu pointed out that I need to:
  1. remove the quotation marks around $show_name at line 1068
  2. account for the possibility of $posterid==0 at line 1095

My code as currently in pull request 427 behaves as expected, and as desired except for the issue outlined in point 2.

Removing the quotation marks from line 1068 produces the behaviour that the name of the user who submitted the request is quoted in all subsequent notification e-mails.
  • this persists if quotation marks are added back in.
  • this persists if everything after username => is deleted and rewritten.
  • this behaviour does not persist if line 1095 is replaced with mapping to a static text string, e.g. username => "badgerbadger", and the change is then committed, but does persist if it is instead mapped to e.g. $posterid.
  • this behaviour does not persist if the entirety of any line which has ever contained $show_name (without quotation marks) is deleted or commented out.
  • supportlog in the database is recording the correct information; it's just not making it to e-mail, somehow.


Ideas, please? I am WAY out of my depth here.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2013-06-13 10:27 pm (UTC)(link)
o.O

dead chicken?
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2013-06-13 10:37 pm (UTC)(link)

i mean, uh, there has to be SOME reason for it, right?

if nobody else has any ideas i can probably poke at it a bit later and at least see if i can reproduce it. because o.O

shadowspar: Members of the band B'z, sitting down (b'z sitting)

[personal profile] shadowspar 2013-06-14 02:34 am (UTC)(link)
Took a stab at reproducing this tonight, and....I got nothin'. The code demonstrates the same, correct behaviour in either case, whether the quotes on l.1068 are taken out or put back in.

Best guess on my part, and only if you haven't done so already: change your code out so that the version in your pull request is in place, less the quotes on l.1068. Then, restart both Apache *and* whatever worker you are using to send support notifications, to make sure they've picked up your code changes.

Sorry I don't have anything more for you! *is mystified*
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)

[personal profile] fu 2013-06-15 06:39 pm (UTC)(link)

Hey did you see [personal profile] jeshyr's latest post re: workers possibly still running in the background? I wonder if that could explain what is happening here.