Multiple identical notifications

Hi,

do you have an idea why this notification has been sent 6 times?

best,
Carola

Hi @carola,

Which application are you using, and what version?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

Sorry, OJS 2.4.8

best,
Carola

Hi @asmecher,

did you have the chance to have a look at this?

best,
Carola

Hi @carola,

Those correspond to NOTIFICATION_TYPE_REVIEWER_FORM_COMMENT – the type column is 16777234, and that corresponds to the defined constant in Notification.inc.php

define('NOTIFICATION_TYPE_REVIEWER_FORM_COMMENT', 0x1000012);

These notifications are created whenever a reviewer form comment is added, and of course there can be several of these. In this case the notifications persist, not only the last-added one.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

but this is one event (submission of a review form review) with 6 identical notifications (same user, same article id, same recipient, same content). The mail was sent 6 times with 5 of the mails sent at almost exactly the same time (following 20 seconds after the original one).

There are doubled notifications for some time now, but mostly only 1. Still, also 1 doubled mail can be annoying and suggests there is some problem in the system.

best,
Carola

Hi @carola,

If you have web server access logs for that date/time, could you double-check that there wasn’t some kind of multiple form submission event there?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

the access entries are there and all saveReviewFormResponses are logged. I tried to replicate it and if I keep on clicking the save button (or maybe if you have shaky hands), the post is sent several stimes. Still, I always had a call to the main review page in between the saveReviewFormResponses (index.php/journal2/reviewer/submission/9) in the logs but no editReviewFormResponse (to open the form).

best,
Carola

logs for the screenshot from above:

[04/09/2016:13:55:46 +0200] “POST
/index.php/cod/reviewer/saveReviewFormResponse/42/2 HTTP/1.1” 302 - “…./reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

[04/09/2016:13:56:05 +0200] “POST
/index.php/cod/reviewer/saveReviewFormResponse/42/2 HTTP/1.1” 302 - “…./reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

[04/09/2016:13:56:05 +0200] “GET
/index.php/cod/reviewer/submission/42 HTTP/1.1” 200 19992 “…/reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

[04/09/2016:13:56:06 +0200] “POST
/index.php/cod/reviewer/saveReviewFormResponse/42/2 HTTP/1.1” 302 - “…./reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

[04/09/2016:13:56:06
+0200] “POST /index.php/cod/reviewer/saveReviewFormResponse/42/2
HTTP/1.1” 302 - “…./reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

[04/09/2016:13:56:07 +0200] “POST
/index.php/cod/reviewer/saveReviewFormResponse/42/2 HTTP/1.1” 302 - “…./reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

[04/09/2016:13:56:07 +0200] “POST
/index.php/cod/reviewer/saveReviewFormResponse/42/2 HTTP/1.1” 302 - “…./reviewer/editReviewFormResponse/42/2”
“Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/45.0.2454.101 Safari/537.36”

Hi @carola,

Hmm, those repeated POST requests are interesting – if you’re able to replicate the behavior, I’d suggest trying it with a developer toolbar to see if you can figure out why these multiples are showing up. It looks to me like OJS is doing what it’s told (several POSTS result in several notifications), I’m just not sure why multiple POSTs are being sent. That’s more likely browser-side.

Regards,
Alec Smecher
Public Knowledge Project Team