Skip to content

Conversation

@labkey-tchad
Copy link
Member

Rationale

There are some known issues with random field and domain name generation.

Issue 53706: List key field name length is limited to 64 characters. We should avoid long list key names until this issue is resolved. Limiting the length of names containing "key" should be sufficient to prevent test failures due to this issue.

Numerous SM Starter and SM Trial tests fail because they can't validate names using the validateDomainAndFieldNames API; either because the initial user hasn't been created or there isn't a browser session available to piggy-back. I've reimplemented the test-side name validation that we did before that API was created. We can revisit this this later but I'd like to get those tests passing; making the API work reliably would be a much more involved update. (The existing API validation can be enabled via the new webtest.remote.domain.validation test property)

Related Pull Requests

Changes

  • Avoid creating long list key field names
  • Stop using the server to validate random field and domain names

@labkey-tchad labkey-tchad requested review from a team and labkey-danield and removed request for a team September 5, 2025 18:52
@labkey-jeckels
Copy link
Contributor

FYI, I just opened a PR to develop (due to an exp upgrade script already added since the 25.9 branch) to support > 64 character key field names.

LabKey/platform#7018

Comment on lines +649 to +650
if (fieldName != null && fieldName.length() > 64 && fieldName.toLowerCase().contains("key")) // Not guaranteed but likely a list key
return true; // Issue 53706: List key field name length is limited to 64 characters
Copy link
Contributor

Choose a reason for hiding this comment

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

As @labkey-jeckels mentioned, this issue will be fixed in develop very soon, so this code can be removed there.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is like picking your poison. This will keep the noise down in 25.9 but we will have to remember to remove this code when merging from 25.9 into develop.
Hopefully having the issue listed here will be a clue when merging into develop to not take this line.

Comment on lines +649 to +650
if (fieldName != null && fieldName.length() > 64 && fieldName.toLowerCase().contains("key")) // Not guaranteed but likely a list key
return true; // Issue 53706: List key field name length is limited to 64 characters
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is like picking your poison. This will keep the noise down in 25.9 but we will have to remember to remove this code when merging from 25.9 into develop.
Hopefully having the issue listed here will be a clue when merging into develop to not take this line.

@labkey-tchad labkey-tchad merged commit 399c044 into release25.9-SNAPSHOT Sep 8, 2025
8 checks passed
@labkey-tchad labkey-tchad deleted the 25.9_fb_fixRandomFieldProblems branch September 8, 2025 22:03
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.

5 participants