by uko » Tue Nov 01, 2011 9:21 am
Hi all,
I discovered an issue with pdfobject and counting of pdf views in table article_galley when browsing with Firefox.
On article/view/articleId/galleyId with inline pdf: Each time using fullsize ON / Off a get request is called ('viewFile/articleId/galleyId'). Because pdf-view is incremented when requested 'viewFile ...' the counter is incorrect, and provides wrong user statistics therefore. I compared the report, generated by OJS, with the server log-file. My testcase shows significant differences.
I have no idea if it is a matter/bug of FF or of pdf-plugin or any other thing of jquery. Multiple get request only occurs in FF, not in Chrome or IE, I tested for comparing this behaviour.
Can anyone replicate it and confirm my observation, or is this only a strange behaviour within my test enviroment?
(It seems it would be more stable when counting pdf-views at first request of view/articleId/galleyId, see function view in ArticleHandler, not viewFile as it is in function viewFile in ArticleHandler. However, I am not gone deeper in source code (and I am not an expert), therefore, I know nothing about dependencies when code would be changed.)
Regards,
Ute
--
test enviroment:
OJS 2.3.3.3 resp OJS 2.3.6.0 ,
win7 resp win server 2003,
php 5-2-9-2,
apache 2.2.11,
FF 7.0.1 ( with Adobe PDF-Plugin, vers 10.1.1.33) resp FF 3.6.10 with Adobe PDF-Plugin, vers 9.4.5.236 , IE8 ( with Adobe PDF Reader vers 10.1.1.33), chrome( with own integrated pdf viewer),
---