Closed Bug 1990761 Opened 6 months ago Closed 6 months ago

[ews] New folder name are not trimmed before they are created, causing visual clutter - Suggested fix: Remove trailing/trailing spaces (whitespace) in folder name via trim function before creating it

Categories

(MailNews Core :: Networking: Exchange, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1989670

People

(Reporter: richard.leger, Unassigned)

References

(Blocks 2 open bugs)

Details

In TB 144.0b1 (64-bit) on Windows 11 24H2, setup with a MS365 work school account...

Step to reproduce:

  • Right click Inbox > New Folder... > enter name "Test Folder 2 " (extra trailing space at the end very common for windows users to do so during copy/paste)

Actual result:

  • In TB newly created folder appears as "Test My Folder 2af4fe9a7" (added "gibberish" at the end)
  • In Outlook Web as "Test My Folder 2 " in Outlook Web (when trying to rename, it appears there is a space at the end but it may be removed automatically by Outlook not exactly sure)

Note: it does not seems to affect the synchronisation of the folder, but visual mismatch is confusing.

Expected result:

  • In TB newly created folder appears as "Test Folder 2" in Thunderbird (folder name trimmed)
  • In Outlook Web appears created as "Test Folder 2" (the same)

Suggested fix:

  • Apply "Trimming space" on the folder name before creating it (e.g TRIM function something like Trim(folder_name) to remove unwanted spaces (whitespace) from the beginning (leading) and/or end (trailing) of a text string.

Hmm, maybe not ews specific? xref bug 1989670

Yep, after spending some time looking into it today it looks like this impacts much more than just EWS, and a proper fix looks quite involved. Trimming would be a possible workaround but not a proper fix since other cases such as folder names starting with a period remain an issue.

I'm closing this bug as a duplicate of bug 1989670 so we track work on this in a central place. Richard, I suggest you Cc yourself to it if you're interested in following its resolution.

Status: NEW → RESOLVED
Closed: 6 months ago
Duplicate of bug: 1989670
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.