PASTAplus / DataPortal

EDI Data Portal
3 stars 3 forks source link

Metadata preview web page contains active hyperlinks that return 404s #107

Closed servilla closed 1 month ago

servilla commented 9 months ago

The metadata previewer web page renders EML metadata using the same XSLT as the active metadata viewer web page, including the display of data and metadata-accessible hyperlinks. Hyperlinks in the metadata previewer web page, however, result in PASTA 404 error messages when the previewed metadata has not yet been published in the repository. Links should be sanitized (or at least made inoperable) before being displayed on the metadata previewer web page.

servilla commented 1 month ago

Bumping from low to high priority...

On Sat, Jul 6, 2024 at 1:46 PM Kate ... <...> wrote: Hello EDI,

When I am previewing a data package, I am used to using the detailed metadata view. I recently noticed the View Summary option, but whenever I click on it, I get the following message:

An error has occurred in the Data Portal:

edu.lternet.pasta.common.UserErrorException: The 'scope', 'identifier', or 'revision' field of the packageId is empty.

For further assistance, please contact the Environmental Data Initiative. Please copy the error message shown above into your email message, along with any other information that might help us to assist you more promptly.

I have included an identifier in the package.id field (e.g. knb-lter-nes.23.2). Do you know if there is something I can do differently to enable the summary view?

Thank you so much,

Kate