[ISSUE #28] Prevent merging of CQL filter for multiple layers#29
Closed
afabiani wants to merge 1 commit intomapfish:mainfrom
Closed
[ISSUE #28] Prevent merging of CQL filter for multiple layers#29afabiani wants to merge 1 commit intomapfish:mainfrom
afabiani wants to merge 1 commit intomapfish:mainfrom
Conversation
Collaborator
|
@afabiani it would be good to provide a good description for this PR to inform about the purpose of this contribution and to help with the review. Can you provide that, please? After this, is it possible to have someone for a review? @aaime? @jodygarnett? |
aaime
suggested changes
Feb 24, 2025
| } | ||
|
|
||
| private HTTPMapReader createMapReader(PJsonObject layer) { | ||
| private HTTPMapReader createMapReader(PJsonObject layer, RenderingContext context) { |
There was a problem hiding this comment.
The context does not seem to be used, why was it added?
| hosts.add(HostMatcher.ACCEPT_ALL); | ||
| config.setHosts(hosts); | ||
| PJsonObject globalParams = createGlobalParams(); | ||
| PJsonObject emptyParams = new PJsonObject(new JSONObject(), "globalParams");; |
There was a problem hiding this comment.
Why do you need empty params, I thought the code was null safe here.
Collaborator
Author
|
Closing this one since the use case is covered already by the global settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When trying to issue the same
CQL_FILTERparameter to morelayers, it the filter has same values it will get merged by the library thus causing an error on theGetMapresponse.Sample Requests
FAILING (Same "CQL_FILTER":"(\"CFCC\"='D31')")
GOOD (Different "CQL_FILTER":"(\"CFCC\"='D32')" and "CQL_FILTER":"(\"CFCC\"='D31')")