Hexagon Geospatial
MENU

ERDAS APOLLO & ECW/JP2

Wondering how others have configured their ERDAS APOLLO server or what data they are crawling? The ERDAS APOLLO Discussion board is a place to find information, share ideas and more. Join the community, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 134
Registered: ‎04-11-2016
Accepted Solution

Apollo CSW Authentication

With 2018 release, we can now create CSW services in Apollo.

 

I created an aggregate, set up the security for the aggregate to use anonymous, then I grabbed the CSW end point from Catalog Web Interface.

http://[SERVERNAME]:80/erdas-apollo/catalog/csw?version=2.0.2&request=GetCapabilities&service=CSW

I then opened QGIS CSW client, connected to the CSW service fine and I could search for the schools dataset:

csw01.png

 

However when I tried to examine the school dataset in details by double-clicking on it, the follow error message pops up:

 

cws02.png

 

I figured this might be a Apollo permission issue. Then I ran up Fiddler, found that QGIS was trying to request http:/[ServerName]/erdas-apollo/catalog/wrs/WRS?outputFormat=application%2Fxml&service=CSW&outputSchema=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2&request=GetRecordById&version=2.0.2&elementsetname=full&id=MSSql%3A%2F%2FGeoTrainSpatial%3Fdataset%23schools 

If I then open this URL in browser, I was prompt to authenticate. I used Apollo logon to pass the authentication.

 

I was hoping by setting the aggregate to use anonymous access, the CSW won't need to be authenticated, but unfortunately it's not the case. 

 

 

Could you please clarify if this is working as designed or there will be future improvement to this? I could log a ticket but I just would like to see you response first.

 

A typical use case would be the members of the public would want to access the CSW but they do not have Apollo log ins. 

 

 

Cheers

Yuan

 

 

 

Moderator
Moderator
Posts: 341
Registered: ‎11-16-2015

Re: Apollo CSW Authentication

Hi Yuan,

 

You should be able to make the CSW public by editing this file: C:\Program Files\Hexagon\ERDAS APOLLO\webapps\erdas-apollo\WEB-INF\config\security-config.xml

 

Modify the CSW filter and restart Tomcat:

csw.PNG

 

Florent

Frequent Contributor
Posts: 134
Registered: ‎04-11-2016

Re: Apollo CSW Authentication

Hi Florent

 

Thanks for responding promlty.

I tried what you suggested, it still didn't work, then I looked a bit close into the URL that QGIS trying to request:

http://[ServerName]/erdas-apollo/catalog/wrs/WRS?outputFormat=application%2Fxml&service=CSW&outputSchema=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2&request=GetRecordById&version=2.0.2&elementsetname=full&id=urn%3Ax-erdas%3AlasClassifications%3A2

 

Then I figured I might need to set pattern="\A/catalog/wrs/.*\Z" to use IS_AUTHENTICATED_ANONYMOUSLY as well.

So I went head making the change:

<sec:intercept-url pattern="\A/catalog/wrs/.*\Z" access="IS_AUTHENTICATED_ANONYMOUSLY"/>

 

Now I can see open the detailed Metadata window fine.

CSWWindow.png

 

By the way is there any security precautions that I need to be ware of after setting up WRS to use anonymous?

 

 

Cheers

Yuan

 

Moderator
Moderator
Posts: 341
Registered: ‎11-16-2015

Re: Apollo CSW Authentication

No, this is due to our internal CSW implementation. If you remove the CSW security, you have to do it also for the WRS.

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.