Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

view metadata link not working #270

Open brucevandenberg opened 7 years ago

brucevandenberg commented 7 years ago

When I click view metadata link under manage resources, I get a blank page. All other functions are working normally

zguo commented 7 years ago

Does it happen with all metadata or only a specific type?

brucevandenberg commented 7 years ago

All metadata in Administrative Manage windows. Also the same action happens when pressing download icon. If I go to a search and find dataset, metadata works just fine. I thinks both view and download have to do with the Metadata.jsp according to Fiddler. Thanks for your assistance as we are planning on using geoportal for all ARS metadata going forward.

Bruce Vandenberg IT Specialist USDA-ARS-PA, Center for Agricultural Resource Research 2150 Centre Avenue, Building D, Suite 340, Room 3283 Fort Collins, Colorado 80526 970-492-7775 Bruce.vandenberg@ars.usda.govmailto:Bruce.vandenberg@ars.usda.gov

Note: New phone number

From: ZhongPing Guo [mailto:notifications@github.com] Sent: Tuesday, May 30, 2017 5:43 PM To: Esri/geoportal-server geoportal-server@noreply.github.com Cc: Vandenberg, Bruce Bruce.Vandenberg@ARS.USDA.GOV; Author author@noreply.github.com Subject: Re: [Esri/geoportal-server] view metadata link not working (#270)

Does it happen with all metadata or only a specific type?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Esri/geoportal-server/issues/270#issuecomment-305039787, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbWJcxqc6vnB2UmVQSsMkSA--M6lQpPyks5r_KlogaJpZM4NpihG.

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

zguo commented 7 years ago

not sure why view metadata works in search result but not in view metadata from admin tab as both read from the database, are there any hints in the log?

brucevandenberg commented 7 years ago

I looked at one log and it gave me no clue. Is there one in specific I should be looking at?

Bruce Vandenberg IT Specialist USDA-ARS-PA, Center for Agricultural Resource Research 2150 Centre Avenue, Building D, Suite 340, Room 3283 Fort Collins, Colorado 80526 970-492-7775 Bruce.vandenberg@ars.usda.govmailto:Bruce.vandenberg@ars.usda.gov

Note: New phone number

From: ZhongPing Guo [mailto:notifications@github.com] Sent: Thursday, June 1, 2017 4:18 PM To: Esri/geoportal-server geoportal-server@noreply.github.com Cc: Vandenberg, Bruce Bruce.Vandenberg@ARS.USDA.GOV; Author author@noreply.github.com Subject: Re: [Esri/geoportal-server] view metadata link not working (#270)

not sure why view metadata works in search result but not in view metadata from admin tab as both read from the database, are there any hints in the log?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Esri/geoportal-server/issues/270#issuecomment-305636254, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbWJc_YR9aZJZQBWyzs3wzG53nnflIg1ks5r_ziGgaJpZM4NpihG.

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

zguo commented 7 years ago

Usually gpt-2017... log has the most info, another option might to setup a separate geoportal instance pointing to same database to see if the issue is reproducible.

zguo commented 7 years ago

We observed the issue in Tomcat 8.5.15 (might be specific to tomcat 8.5.x), added uuid encoding to the url, works on my test instance now.

brucevandenberg commented 7 years ago

Thanks, how is that done?

Bruce Vandenberg IT Specialist USDA-ARS-PA, Center for Agricultural Resource Research 2150 Centre Avenue, Building D, Suite 340, Room 3283 Fort Collins, Colorado 80526 970-492-7775 Bruce.vandenberg@ars.usda.govmailto:Bruce.vandenberg@ars.usda.gov

Note: New phone number

From: ZhongPing Guo [mailto:notifications@github.com] Sent: Monday, June 12, 2017 4:36 PM To: Esri/geoportal-server geoportal-server@noreply.github.com Cc: Vandenberg, Bruce Bruce.Vandenberg@ARS.USDA.GOV; Author author@noreply.github.com Subject: Re: [Esri/geoportal-server] view metadata link not working (#270)

We observed the issue in Tomcat 8.5.15 (might be specific to tomcat 8.5.x), added uuid encoding to the url, works on my test instance now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Esri/geoportal-server/issues/270#issuecomment-307953194, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbWJc6xwIBnigxnHTVVBHBTA_RchIkxrks5sDb03gaJpZM4NpihG.

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

zguo commented 7 years ago

It's in the updates Urban made, in catalog/publication/manageMetadataBody.jsp

replace line 278 sUrl += "?uuid="+sUuid+"&option=view"; with sUrl += "?uuid="+encodeURIComponent(sUuid)+"&option=view";

replace line 284 sUrl += "?uuid="+sUuid; with sUrl += "?uuid="+encodeURIComponent(sUuid);

DanelleM commented 6 years ago

My group at BLM is experiencing a similar issue - metadata link not working in search results, but didn't notice if it was also broken in Admin/Manage Records page. This was at 1.2.7 with Tomcat 7.0.54 and the provided solution seemed to work for us. We have now upgraded to 1.2.9, still on Tomcat 7.0.54, and we are seeing the metadata link not function in the search results, but it is working in the Admin/Manage Records page.

The other item of note in this new occurrence, that we aren't sure of in the previous occurrence, is that the metadata link behaves properly if we hit the machine directly (http://computername/geoportal/rest/document...). If we access the site over a domain name, the metadata link does not function.

We have had this issue a few times over the last year, and become more aware of the extent of it each time. Twice now, we have felt that it was resolved, and then later discovered the issue was reoccurring - but with 6000 records, it is fairly time consuming to check all of them manually, and we haven't ever found a repeatable pattern, so we can't be sure that the issue was ever resolved.

Thank you for any thoughts on this issue!

zguo commented 6 years ago

not sure but might be configuration, if it does not work in search result, you might check if the index is up to date, also check the reverse proxy is defined in gpt.xml.