Skip to content

Conversation

DenverCoder544
Copy link
Contributor

Some layers require apikeys or referers or whatnot to function, and those did not get added in printservice.

This solution is based on paikkis and one provider specifically, so the whitelist probably should reside somewhere else than hardcoded here and in paikkis' case we might also consider a few other whitelisted params as well.

}

private String getLayerAdditionalRequestParams() {
String[] layerUrlParams = layer.getOskariLayer().getUrl().split("\\?");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OskariLayer has getParams(). We should have the apikey there instead of parsing it from the URL. Also IOHelper has bunch of methods parsing and constructing URLs.

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

Successfully merging this pull request may close these issues.

2 participants