Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capabilities docs being returned as a wrong MIME type are not being parsed #70

Open
dan-bowerman opened this issue Mar 13, 2017 · 2 comments

Comments

@dan-bowerman
Copy link
Member

A service like http://afc-fr.cfsnet.nfis.org/arcgis/services/FGP/fias10/MapServer/WMSServer?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=wms does not come back as the correct XML mimetype, which causes the upgrade function (and possibly other functions) to fail. Adjust RCS to be more permissive about the file type that comes back.

@dan-bowerman dan-bowerman self-assigned this Mar 13, 2017
@dan-bowerman dan-bowerman changed the title Capabilities docs being returned as a wrong MIME type are not being parsed. Capabilities docs being returned as a wrong MIME type are not being parsed Mar 13, 2017
@dan-bowerman
Copy link
Member Author

Sample registration request, for posterity:

{
	"fr": {
		"feature_info_format": "text/plain",
		"service_url": "http://afc-fr.cfsnet.nfis.org/arcgis/services/FGP/fias10/MapServer/WMSServer",
		"service_type": "ogcWms",
		"legend_format": "image/png",
		"recursive": true,
		"service_name": "WMS french"
	},
	"en": {
		"feature_info_format": "text/plain",
		"service_url": "http://afc-fr.cfsnet.nfis.org/arcgis/services/FGP/fias10/MapServer/WMSServer",
		"service_type": "ogcWms",
		"legend_format": "image/png",
		"recursive": true,
		"service_name": "WMS english"
	},
	"version": "2.0"
}

@dan-bowerman
Copy link
Member Author

The service owners seem to have just fixed this service, so now it comes back as proper XML and is readable in RCS and RAMP. Will put this issue on hold for now until another service comes along with this MIME issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant