Project

General

Profile

Bug #5547

Couldn't get the Register Data Form after login under Register Data tab on Sanparks skin

Added by Jing Tao about 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
11/21/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5547

Description

When you click "Register Data" tab on Sanparks skin, it will show a login form if you haven't login. However, it will show a successful page without any clue to get the register data form when user successfully login. I think the correct behavior should be showing the register data form.

History

#1 Updated by Jing Tao about 8 years ago

If you login on the sanparks home page, you will get the login form when you click Register Data link. It seems that the main login action doesn't link to the Register Data form.

#2 Updated by Jing Tao almost 8 years ago

And the login/logout action on the home page seems not affect the login status on the "Register Data" at all.

#3 Updated by ben leinfelder almost 8 years ago

I've fixed the first issue where after logging in from the "Register Data" you are now redirected to the registry form to fill out.

It's true that the the Perl session and the Java session seem to be unrelated for login status.
1.) If we use the Perl registry to logout, we successfully logout in the eyes of both Perl and Java:
/knb/cgi-bin/register-dataset.cgi?cfg=sanparks&stage=logout
This action removes the session in the registry and then also calls the Metacat servlet with action=logout.
But if we only logout via Metacat servlet, then Perl thinks we are still logged in.

2.) For login, the home page uses the Metacat servlet (action=login) and the Registry uses the Perl/CGI session to login. If you use the registry to login, it too goes through the Metacat servlet and both systems "know" that you are logged in. If you only use the Metacat servlet, the Perl side does not know you are logged in.

We can make the SANParks home page (skin) use only the Perl registry for login/logout to solve this. But that means the SANParks skin will require the Perl registry be installed. Thoughts?

#4 Updated by Jing Tao almost 8 years ago

I like main page still keeping to use Java login. So user can do uploading data, schedule workflow et al without installing Perl registry. Is it possible perl session to get java login info?

#5 Updated by ben leinfelder almost 8 years ago

I played around with that, but it basically means the Perl code would have to act as a proxy for the browser session and interact with Metacat as a client. But the Metacat client (in Perl and in Java) establishes its own session with the Metacat servlet and does not have a facility for pretending to be from a different session.

#6 Updated by ben leinfelder almost 8 years ago

We are pushing this off 2.0.0 release as something to work on for SANParks.

#7 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 5547

Also available in: Atom PDF