Bug #5709


Cannot download XML for private datapackages shown in XSL display

Added by ben leinfelder over 11 years ago. Updated over 11 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Meei-ru pointed out that the data file downloads do work but that you get a permission error ("public not allowed") when attempting to download the EML source (qformat=xml) from the page where you are already viewing the EML (styled by skin).

I traced it down to two things:
1. "sessionid" is not included in the EML download link like it is in the data download link.
2. The default skin login form does not seem to correctly set the session cookie. I expected that in lieu of the sessionid parameter, Metacat would look at my browser cookie for the sessionid and use that. This is the case for the admin login screen and for the dev skin login. Looking briefly at the default skin login, it uses the Metacat client to do the authentication call and then manually set the cookie in the browser (at path "/knb/style/skins/default/"). Using the dev skin, the cookie is set at "/knb").

Actions #1

Updated by ben leinfelder over 11 years ago

Furthermore, I see that on every other refresh of the default skin's index.jsp page I am shown as logged in vs. not.

Actions #2

Updated by ben leinfelder over 11 years ago

I can see how this happens now: when we call the login method action on Metacat, we end up overwriting the session variables that the skin placed and therefore the skin thinks you are not logged in (even though Metacat knows you are, at least if you know your same sessionid -- that statys constant).

Really this whole process should be streamlined so that the MetacatClient is not used and we rely strictly on the action=login method of the servlet.

Actions #3

Updated by ben leinfelder over 11 years ago

The XSL has been updated to include sessionid.
We will not refactor default skin at this time.

Actions #4

Updated by Redmine Admin almost 11 years ago

Original Bugzilla ID was 5709


Also available in: Atom PDF