Cannot download XML for private datapackages shown in XSL display
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").
#2 Updated by ben leinfelder almost 7 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.