Skip to content

Conversation

@labkey-tchad
Copy link
Member

Rationale

We can't validate random field and domain names when running against trial instances. We can do a test-side validation to get largely the same result.

Related Pull Requests

Changes

  • Fix domain/field name validation for trial tests
  • Capitalize random domain names

@labkey-tchad
Copy link
Member Author


private static boolean isDomainAndFieldNameInvalid(DomainUtils.DomainKind domainKind, @Nullable String domainName, @Nullable String fieldName)
{
if (TestProperties.isTrialServer()) // WebTestHelper.getRemoteApiConnection() won't work against trial server
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume this doesn't work due to authentication issues.

Could we make the ValidateDomainAndFieldNames API available to guests? I see it's also a MutatingApiAction which surprised me. @cnathe are we close to being able to make this a ReadOnlyApiAction and/or open to guests?

Copy link
Contributor

Choose a reason for hiding this comment

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

Having ValidateDomainAndFieldNames be a MutatingApiAction instead of ReadOnlyApiAction was inadvertant, copy-paste / typo on my part. I'll get that switched and a PR open.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this change if/when Cory's change is merged?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not this change, but we would need to change isDomainAndFieldNameInvalid to use a guest connection instead of WebTestHelper.getRemoteApiConnection().

@labkey-tchad labkey-tchad deleted the fb_noRandomRemote branch September 5, 2025 18:54
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.

4 participants