Opened 11 years ago

Closed 9 years ago

#428 closed defect (fixed)

WMS getCapability empty response if no service defined

Reported by: abeccati Owned by: Nikolche Kolev
Priority: minor Milestone:
Component: petascope Version: 8.4
Keywords: Cc:
Complexity: Easy

Description

When running a getCapabilites request to WMS server while no WMS service has been defined an empty document is returned instead of an error.

catalina.out message:

ERROR [17:42:53] DatabaseConfigAdapter@93: Error: Failed to find service definition in database:Error: Service not found.
ERROR [17:42:53] WMSException@197: WMSException::WMSException(302,null): warning: cannot read message file pertaining to resource /var/lib/tomcat6/webapps/petascope/WEB-INFwms-messages/raswms_msgs_en; no texts will be available.

Change History (7)

comment:1 by Dimitar Misev, 11 years ago

Also consider that this should be fixed

ERROR [17:42:53] WMSException@197: WMSException::WMSException(302,null): warning: cannot read message file pertaining to resource /var/lib/tomcat6/webapps/petascope/WEB-INFwms-messages/raswms_msgs_en; no texts will be available.

comment:2 by Dimitar Misev, 11 years ago

Piero if you want you can reassign this to nkolev, just please provide an example URL for testing.

comment:3 by Piero Campalani, 11 years ago

think I'll have to.

Beforehand, is this in comment:1 a typo?

.../WEB-INFwms-messages/...

or there is a missing slash indeed?

comment:4 by Piero Campalani, 11 years ago

Owner: changed from Piero Campalani to Nikolche Kolev
Status: newassigned

WMS GetCapabilities request (assuming web containter on 8080):

http://localhost:8080/petascope/wms?request=GetCapabilities&version=2.0.0&service=WMS

comment:5 by Dimitar Misev, 11 years ago

Looks like a missing slash from Alan's description.

What should be the error btw? Nikolche please check in the WMS (1.1 I think) standard.

comment:6 by Nikolche Kolev, 11 years ago

Status: assignedaccepted

comment:7 by Dimitar Misev, 9 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.