Merged
Conversation
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.
Something changed between 25.3 and 25.7 related to HTML encoding of DataRegion PKs. Below is a summary:
BimberLabKeyModules/GenotypeAssays/resources/web/genotypeassays/window/PublishResultsWindow.js
Line 124 in 8a4bd6c
The controller gets that array of PKs using basic form binding. Prior to 25.7, this never needed to do any server-side HTML decoding. The server-side code is here:
BimberLabKeyModules/GenotypeAssays/src/org/labkey/genotypeassays/GenotypeAssaysController.java
Line 133 in 8a4bd6c
Those HTML-encoded PKs are passed to a TableSelector, and this fails to find the right rows, since the PKs are encoded:
BimberLabKeyModules/GenotypeAssays/src/org/labkey/genotypeassays/GenotypeAssaysManager.java
Line 124 in 8a4bd6c
This PR fixes the problem by adding explicit HTML decoding on the server.
To track down what's different from 25.3, I made a list on a 25.3 server where the PK is a string (https://prime.ohsu.edu/list/ONPRC/Core%20Facilities/Genetics%20Core/MHC_Typing/grid.view?listId=7). I added similar values, and we see that on 25.3 the '<>' is not encoded.
Is this a deliberate change in 25.7?