Skip to content

A dot in a file name that isn't an extension hides the start of the name #4364

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

A file name with a dot that isn't an extension, e.g. Release notes v1.2 for customers and partners final draft, shows only the text after the dot in the file lists (table, tiles, search, shares). The start of the name is hidden.

The cause is deeper than the list: extractExtensionFromFile in packages/web-client/src/helpers/resource/functions.ts treats everything after the last dot as the extension, so buildResource sets extension to 2 for customers and partners final draft. That wrong extension then feeds everything using it (name display, rename preselection, icons, app matching). In ResourceName.vue the "extension" part can't shrink, so the basename collapses to 0px.

Reproduction Steps

  1. Upload a file named Release notes v1.2 for customers and partners final draft
  2. Look at its row in Personal (table or tiles, especially on a phone), in search results or in Shares

Expected Outcome

The name starts with "Release notes v1…" and is truncated at the end. Text after a dot that can't be an extension isn't treated as one.

Actual Outcome

The row shows ".2 for customers and partne", cut without ellipsis, the start of the name isn't visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions