OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Data loss when submitting forms

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Data loss when submitting forms

Postby Garant » Wed Sep 26, 2012 12:58 am

Hello!
Configuring OJS 2.3.7 we ran into complicated error.
The problem occurred 3-4 times.
It was noticed when somebody went thru Journal setup (p.5) process.
For example, somebody makes some changes in journal setup then presses the "Save and Continue(submit)" button and voilà: the form is empty, old data was lost and
OJS shows some errors about empty fields.
I understand that it is hard to find that kind of problem, but maybe someone ran into something similar?
Which steps I can take to debug this problem? I understand that this issue could be combined with server or server session.
Any help appreciated!
P.S. found the same problem here:
viewtopic.php?f=8&t=3021&start=0
Garant
 
Posts: 195
Joined: Wed May 30, 2012 8:53 am

Re: Data loss when submitting forms

Postby Garant » Thu Mar 14, 2013 6:32 am

A bit of updated information concerning this problem.
Currently I can't tell which causes additional problem with session, but as I discussed this behaviour with IT specialist it could be the bug in the system's core.
So the problem occurs with this scenario: I'm editing the information through the Setup, making some changes. Then I'm pressing the Save button and session automatically terminates. After this I'm redirected to the login screen. Once I re enter username and login (sometimes I must re enter login information two times, the system doesn't accept if from the first entry!) I'm redirected to the page where I was making some changes. And here is the problem: the forms are empty, not prepopulated! And if I will press save button all blank data will be saved instead of old data! What is nonsense! Data validators bypasses the empty form.
So the first problem is in data prepopulation after session failure. Some validators should be updated.
Second problem is with sessions. Something is wrong but I can't trace what causes session failure.
I hope developers will update data validators asap.
Best regards,
Yuriy
Garant
 
Posts: 195
Joined: Wed May 30, 2012 8:53 am

Re: Data loss when submitting forms

Postby asmecher » Mon Mar 18, 2013 9:01 am

Hi Yuriy,

The only similar report I can think of relates to the use of firewalls that mistakenly interpret the POST request as an SQL injection attack because it contains the words "DELETE" (relating to the controls used to delete uploaded images) and "FROM". If you are using a firewall, I would suggest investigating its configuration to see if that's potentially the case; generally firewalls will have options to log triggers such as these.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7737
Joined: Wed Aug 10, 2005 12:56 pm

Re: Data loss when submitting forms

Postby Garant » Mon Mar 18, 2013 10:25 am

HI, Alec!
It could be very possible. I'm using Eset Smart Security 4. I've looked through the logs - but they doesn't contain any threats from our OJS web site...
Best regards,
Yuriy

P.S. as a solution and a enhancement for the future I see an authorization with AJAX. In that way it will be possible to save data before session expires and with repeated authorization continue work from point when session expired.
Garant
 
Posts: 195
Joined: Wed May 30, 2012 8:53 am

Re: Data loss when submitting forms

Postby asmecher » Tue Sep 03, 2013 1:34 pm

Hi Yuriy,

I would also suggest checking to see if your session_check_ip option is enabled in config.inc.php; if so, and if your IP changes mid-session, you'll be forced to log in again. In that case I'd suggest disabling session_check_ip.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7737
Joined: Wed Aug 10, 2005 12:56 pm

Re: Data loss when submitting forms

Postby Garant » Tue Sep 03, 2013 10:12 pm

Hi, Alec !
Thank you for you reply. I'll try to disable the session check ip and will check from time to time the situation.
Best regards,
Yuriy
Garant
 
Posts: 195
Joined: Wed May 30, 2012 8:53 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests