WeBWorK Main Forum

Clicking "Edit Tags" causes authentication error

Clicking "Edit Tags" causes authentication error

by Larry Riddle -
Number of replies: 2

In the Library Browser while logged in as admin, clicking on "Edit Tags" for a local problem on our WW server results in the message "Authentication failed. Log in again to continue". And sure enough, if I try to do anything else, I'm sent back to the login screen. Once logged back in, I can return to the Library Browser and click on the edit button for the problem to go into the Problem Editor. I can then manually enter (or edit) tags and save the file. It seems that the "Edit Tags" button is the source of the issue. We are on WW 2.19.

Is there some setting in a configuration file that I need to change? I did check and the default setting permissionLevels(modify_tags => "admin") is not overridden in the localOverrides.conf file. Just to be safe, I did enable $permissionLevels{modify_tags} = "admin"; in localOverrides. Didn't help.

Could it be a permission issue with the courses? Here is an example with one of the problems I've been trying to edit tags in the Library Browser

-rw-rw-r-- 1 www-data www-data 5970 Jul 26 15:20 separable.pg

If I go to the command line as wwadmin, I can edit this file manually as expected.

Any suggestions?

This isn't a big issue, but I'm editing some problems I wrote several years ago and figured I should go ahead and include the tags in case I every submit them for the OPL.

In reply to Larry Riddle

Clicking "Edit Tags" causes authentication error

by Danny Glin -

If you're getting logged out it likely has to do with the session.  It shouldn't have anything to do with file permissions or permission levels for the user.

Quite often these sorts of issues are related to cookies and cookie settings.  Can you try a different browser and see if you get the same behaviour?  Also do you see anything in the javascript error log in your browser?

In reply to Danny Glin

Clicking "Edit Tags" causes authentication error

by Larry Riddle -
Thanks for pointing me to "session". Turns out the issue was because session management was set to "key" in localOverrides. Commenting that out to restore the default of session_cookie allowed the "Edit Tags" button to work correctly in the Library Browser.