New issue
Advanced search Search tips

Issue 618737 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

SavePackage::TruncateBaseNameToFitPathConstraints is wrong

Project Member Reported by asanka@chromium.org, Jun 9 2016

Issue description

As written, the function doesn't work even for UTF-8 based paths.

* FilePaths cannot be truncated without knowing its encoding. For Posix systems, this isn't a given. When there are length constraints, the filename should be truncated at path generation time instead of afterwards.

* Truncation should only be performed at character boundaries instead of byte offsets.

* Path component length restrictions should be determined at runtime based on the underlying file system instead of using hardcoded constants. See base::GetMaximumPathComponentLength in file_util.h

 
Please ping me if anyone would like a swing at this.
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 12 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Owner: xingliu@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment