Skip to content

Manually decode form parameters#197

Merged
bbimber merged 2 commits intodiscvr-25.7from
25.7_fb_htmldecoding
Aug 27, 2025
Merged

Manually decode form parameters#197
bbimber merged 2 commits intodiscvr-25.7from
25.7_fb_htmldecoding

Conversation

@bbimber
Copy link
Contributor

@bbimber bbimber commented Aug 27, 2025

Something changed between 25.3 and 25.7 related to HTML encoding of DataRegion PKs. Below is a summary:

  • We have a SQL query where the PKs values contain the delimiter string '<>'. There is a client-side form associated with a DataRegion that grabs the PKs from the checked rows using LABKEY.DataRegion.getChecked(), and POSTs them to the server using a vanilla LABKEY.Ajax.request(). That code is here:

  • I noticed that the PKs as returned by DataRegion.getChecked() are HTML encoded. This is different from 25.3 (more below):
image

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.

image

Is this a deliberate change in 25.7?

@bbimber bbimber merged commit c98c258 into discvr-25.7 Aug 27, 2025
3 of 5 checks passed
@bbimber bbimber deleted the 25.7_fb_htmldecoding branch August 27, 2025 13:38
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.

1 participant