Review access one click redirect to login page

Hi

The review access one click url redirect to login page in ojs 3.1.2-1. ¿Any idea?

Thnks

Hi @Enrique_Manuel_Touce,

Are you logged in as another user when you try to access it?

Regards,
Alec Smecher
Public Knowledge Project Team

No I am not logged in
pages/reviewer/ is not calling
I can delete all of the content and the result is de same, redirect to login page

Hi @Enrique_Manuel_Touce,

What do you mean when you say “delete all the content”? Cookies from the browser, or something else?

Regards,
Alec Smecher
Public Knowledge Project Team

I mean that delete all cookies and put a var_dump into authorize function of pages/reviewer/ReviewerHandler.inc.php but not call this function allways go to login page.

Hi @Enrique_Manuel_Touce,

The code responsible for validating the access key (that provides one-click reviewer access) is in pages/reviewer/ReviewerHandler.inc.php in the _validateAccessKey function. I’d suggest checking if that’s being called, and whether one of the return false cases are being hit.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks for the reply. I find the problem, this is a migration from 2.4.8 to 3.1.2-1
The problem is with old url in 2.4.8 that is distintc to new url

There is any way to maintenance two url?

Thnks

Hi @Enrique_Manuel_Touce,

I don’t remember off the top of my head the forms of the two URLs; could you post two examples (obscuring the key and your domain)? I might be able to suggest something.

Regards,
Alec Smecher
Public Knowledge Project Team

http://xxxx/index.php/rge/reviewer/submission?submissionId=6617&reviewId=6874&key=xxxx new url
http://xxxx/index.php/rge/reviewer/submission/6874?key=xxxx old url

Hi @Enrique_Manuel_Touce,

This isn’t something you could do with a mod_rewrite rule or something simple like that, unfortunately, because the information you need for the new URL isn’t present in just the old URL.

I think this could be done with a few lines of code in pages/reviewer/ReviewerHandler.inc.php in the authorize function – check whether the URL is in the old form, and if it is, fetch the associated submissionId and redirect.

Regards,
Alec Smecher
Public Knowledge Project Team

Thnks for your replay