[GeoNetwork-users] missing thumbnails attached to records

Hello list,

I have a fresh Geonetwork 4.2.2 install running on Windows Server with ES 7.17.8 and Kibana 7.17.8 configured. There is an Apache2 instance in front running as a proxy/reverse proxy.

I have noticed an issue with missing attachments linked to a metadata record. Thumbnails are uploaded according the method outlined in the docs [1] and are uploaded and appear in the public folder of the external data directory. However, while the metadata record is available through https://server.angus.gov.uk/geonetwork/srv/eng/catalog.search#/metadata the thumbnail image is being served from http://localhost:8080/geonetwork/srv/api/records/. I need to edit the XML to correct the path to make the image display.

Have I misconfigured something somewhere? Should Geonetwork be writing the correct server name to the metadata record? Should the Apache2 reverse proxy be rewriting the resource URL?

I've come across several other mentions of similar problems but with old versions of Geonetwork [2] and when harvesting records in 2016 [3], 2017 [4] and more recently [5]. I've not found a resolution to the problem other than manually editing each record with the correct path.

Thanks in advance

Ross

[1] https://www.geonetwork-opensource.org/manuals/trunk/eng/users/user-guide/associating-resources/using-filestore.html#uploading-attachments
[2] https://sourceforge.net/p/geonetwork/mailman/geonetwork-users/thread/CAOvRMtwbSmi27Uh%3DFGvC2w6%2BAHBr3PQvGqsGm2mKz_h0u2t_yw%40mail.gmail.com/
[3] https://github.com/geonetwork/core-geonetwork/issues/1730
[4] https://github.com/geonetwork/core-geonetwork/issues/1951
[5] https://github.com/geonetwork/core-geonetwork/issues/4851

Ross McDonald | Geo-evangelist | Angus Council | 01307 49 22 39 | mcdonaldr@anonymised.com<mailto:mcdonaldr@anonymised.com> | www.angus.gov.uk<http://www.angus.gov.uk/&gt;

Follow us on Twitter<https://twitter.com/anguscouncil&gt;
Visit our Facebook<https://en-gb.facebook.com/AngusCouncil&gt; page

Check out Location Data Scotland<https://www.locationdatascotland.com/&gt; for a network of organisations championing spatial data in Scotland.

Hello Ross,

It seems like you didn't set the server name, port and protocol in the settings section of the admin console. In your case they should be set as

* Host: server.angus.gov.uk

* Port: 443

* Preferred protocol: https

After that you will need to go to Contribute -> Batch update and replace https://localhost:8080/geonetwork/ by https://server.angus.gov.uk/geonetwork/srv/eng/catalog.search#/metadata.

Finally go to Admin Console -> Tools -> Reindex records.

Best regards,

Juan Luis.

https://www.geocat.net

Juan Luis Rodriguez Ponce

E-mail: juanluisrp@anonymised.com

https://www.geocat.net

Veenderweg 13

6721 WD Bennekom

The Netherlands

Tel: +31318416664

#

---- On Tue, 31 Jan 2023 16:15:50 +0100 Ross McDonald via GeoNetwork-users <geonetwork-users@lists.sourceforge.net> wrote ---

Hello list,

I have a fresh Geonetwork 4.2.2 install running on Windows Server with ES 7.17.8 and Kibana 7.17.8 configured. There is an Apache2 instance in front running as a proxy/reverse proxy.

I have noticed an issue with missing attachments linked to a metadata record. Thumbnails are uploaded according the method outlined in the docs [1] and are uploaded and appear in the public folder of the external data directory. However, while the metadata record is available through https://server.angus.gov.uk/geonetwork/srv/eng/catalog.search#/metadata the thumbnail image is being served from http://localhost:8080/geonetwork/srv/api/records/. I need to edit the XML to correct the path to make the image display.

Have I misconfigured something somewhere? Should Geonetwork be writing the correct server name to the metadata record? Should the Apache2 reverse proxy be rewriting the resource URL?

I've come across several other mentions of similar problems but with old versions of Geonetwork [2] and when harvesting records in 2016 [3], 2017 [4] and more recently [5]. I've not found a resolution to the problem other than manually editing each record with the correct path.

Thanks in advance

Ross

[1] https://www.geonetwork-opensource.org/manuals/trunk/eng/users/user-guide/associating-resources/using-filestore.html#uploading-attachments
[2] https://sourceforge.net/p/geonetwork/mailman/geonetwork-users/thread/CAOvRMtwbSmi27Uh%3DFGvC2w6%2BAHBr3PQvGqsGm2mKz_h0u2t_yw%40mail.gmail.com/
[3] https://github.com/geonetwork/core-geonetwork/issues/1730
[4] https://github.com/geonetwork/core-geonetwork/issues/1951
[5] https://github.com/geonetwork/core-geonetwork/issues/4851

Ross McDonald | Geo-evangelist | Angus Council | 01307 49 22 39 | mailto:mcdonaldr@anonymised.com<mailto:mailto:mcdonaldr@anonymised.com> | www.angus.gov.uk<http://www.angus.gov.uk/&gt;

Follow us on Twitter<https://twitter.com/anguscouncil&gt;
Visit our Facebook<https://en-gb.facebook.com/AngusCouncil&gt; page

Check out Location Data Scotland<https://www.locationdatascotland.com/&gt; for a network of organisations championing spatial data in Scotland.

_______________________________________________
GeoNetwork-users mailing list
mailto:GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Thank you Juan Luis

Such a simple fix. That has resolved the problem. I have updated my notes.

Kind regards

Ross

From: Juan Luis Rodriguez Ponce <juanluisrp@...444...>
Sent: 31 January 2023 15:52
To: Ross McDonald <McDonaldR@...1970...>
Cc: geonetwork-users <geonetwork-users@lists.sourceforge.net>
Subject: Re: [GeoNetwork-users] missing thumbnails attached to records

Hello Ross,

It seems like you didn't set the server name, port and protocol in the settings section of the admin console. In your case they should be set as
* Host: server.angus.gov.uk
* Port: 443
* Preferred protocol: https

After that you will need to go to Contribute -> Batch update and replace https://localhost:8080/geonetwork/ by https://server.angus.gov.uk/geonetwork/srv/eng/catalog.search#/metadata&gt;\.

Finally go to Admin Console -> Tools -> Reindex records.

Best regards,
Juan Luis.

[Image removed by sender.]<https://www.geocat.net/&gt;

Juan Luis Rodriguez Ponce
E-mail: juanluisrp@...444...
https://www.geocat.net

Veenderweg 13
6721 WD Bennekom
The Netherlands
Tel: +31318416664

[Image removed by sender.]

---- On Tue, 31 Jan 2023 16:15:50 +0100 Ross McDonald via GeoNetwork-users <geonetwork-users@lists.sourceforge.net> wrote ---

Hello list,

I have a fresh Geonetwork 4.2.2 install running on Windows Server with ES 7.17.8 and Kibana 7.17.8 configured. There is an Apache2 instance in front running as a proxy/reverse proxy.

I have noticed an issue with missing attachments linked to a metadata record. Thumbnails are uploaded according the method outlined in the docs [1] and are uploaded and appear in the public folder of the external data directory. However, while the metadata record is available through https://server.angus.gov.uk/geonetwork/srv/eng/catalog.search#/metadata the thumbnail image is being served from http://localhost:8080/geonetwork/srv/api/records/. I need to edit the XML to correct the path to make the image display.

Have I misconfigured something somewhere? Should Geonetwork be writing the correct server name to the metadata record? Should the Apache2 reverse proxy be rewriting the resource URL?

I've come across several other mentions of similar problems but with old versions of Geonetwork [2] and when harvesting records in 2016 [3], 2017 [4] and more recently [5]. I've not found a resolution to the problem other than manually editing each record with the correct path.

Thanks in advance

Ross

[1] https://www.geonetwork-opensource.org/manuals/trunk/eng/users/user-guide/associating-resources/using-filestore.html#uploading-attachments
[2] https://sourceforge.net/p/geonetwork/mailman/geonetwork-users/thread/CAOvRMtwbSmi27Uh%3DFGvC2w6%2BAHBr3PQvGqsGm2mKz_h0u2t_yw%40mail.gmail.com/
[3] https://github.com/geonetwork/core-geonetwork/issues/1730
[4] https://github.com/geonetwork/core-geonetwork/issues/1951
[5] https://github.com/geonetwork/core-geonetwork/issues/4851

Ross McDonald | Geo-evangelist | Angus Council | 01307 49 22 39 | mcdonaldr@...1970...<mailto:mcdonaldr@…1970…><mailto:mcdonaldr@…1970…> | www.angus.gov.uk<http://www.angus.gov.uk/&gt;

Follow us on Twitter<https://twitter.com/anguscouncil&gt;
Visit our Facebook<https://en-gb.facebook.com/AngusCouncil&gt; page

Check out Location Data Scotland<https://www.locationdatascotland.com/&gt; for a network of organisations championing spatial data in Scotland.

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

(attachments)

~WRD000.jpg