Skip to content

Issue 52339: Change list domain URI construction to not use encoded user-provided names#2522

Merged
labkey-susanh merged 3 commits intodevelopfrom
fb_domainLsids
Jul 1, 2025
Merged

Issue 52339: Change list domain URI construction to not use encoded user-provided names#2522
labkey-susanh merged 3 commits intodevelopfrom
fb_domainLsids

Conversation

@labkey-susanh
Copy link
Contributor

Rationale

Issue 52339: When names are too long, we exceed the limit of the domain URI field. We don't really need to use names in these URIs.

Related Pull Requests

Changes

  • Add a test for a list with a long name that includes lots of UTF-8 characters and sets default values

@Test // Issue 52339
public void testLongName()
{
String listName = "A_+-:''.¡™£¢∞§¶•ªº–≠œ∑´®†¥¨ˆøπ“‘«æ…¬˚∆˙©√ƒ∂ßΩ≈ç√∫µ≤≥÷‹›fifl‡°·‚—±⁄€‹›‡‰Æ«»¢∫√∑∏∂";
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider append a random string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems superfluous when the name is already ridiculously complex.

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps. It does lack certain pattern though, like whitespaces.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think any of these need to be escaped to unicode \u values. Was that your impression as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The name of the list looks like it's as provided here. And, in any case, the particular characters are not all that important, just the fact that this leads to a really long URI encoded name.

@Test // Issue 52339
public void testLongName()
{
String listName = "A_+-:''.¡™£¢∞§¶•ªº–≠œ∑´®†¥¨ˆøπ“‘«æ…¬˚∆˙©√ƒ∂ßΩ≈ç√∫µ≤≥÷‹›fifl‡°·‚—±⁄€‹›‡‰Æ«»¢∫√∑∏∂";
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think any of these need to be escaped to unicode \u values. Was that your impression as well?

@labkey-susanh labkey-susanh merged commit bd7e030 into develop Jul 1, 2025
8 checks passed
@labkey-susanh labkey-susanh deleted the fb_domainLsids branch July 1, 2025 00:41
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.

3 participants