Skip to content

Fix folder import with domain containing special characters#6915

Merged
XingY merged 3 commits intodevelopfrom
fb_requiredLineageTest
Aug 13, 2025
Merged

Fix folder import with domain containing special characters#6915
XingY merged 3 commits intodevelopfrom
fb_requiredLineageTest

Conversation

@XingY
Copy link
Contributor

@XingY XingY commented Aug 11, 2025

Rationale

When a domain name ends with a dot (.) character, FiltUtil.makeLegalName would convert that . to _ when trying to match its import file during folder import. The conversion of dot to _ only happens when the dot is the last character in the filename. The logic is flawed in that it doesn't take into the ".tsv" suffix, which would mean the dot is in fact not the last character in the filename.

Related Pull Requests

Changes

  • Pass full file name to FileUtil.makeLegalName to get the correct file name.

@XingY XingY requested a review from labkey-susanh August 11, 2025 18:41
{
String tableName = expObject.getName();
// tsv file name will have been generated from a sanitized table name
// tsv file name might have been generated from a sanitized table name
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps add a note that the uncertainly comes from different treatment in the folder export/import case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just pushed a change with a different implementation.

@labkey-susanh
Copy link
Contributor

Please update PR details with rationale and list of changes.

@XingY XingY merged commit 5e37830 into develop Aug 13, 2025
6 of 20 checks passed
@XingY XingY deleted the fb_requiredLineageTest branch August 13, 2025 00:55
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