View Issue Details

IDProjectCategoryView StatusLast Update
0019758MMW 5Generalpublic2023-10-19 20:55
Reporterpeke Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status feedbackResolutionreopened 
Target Version5.2 
Summary0019758: File Path is truncated on sync even not asked to
DescriptionOriginal File path in Device settings is: "\Classical Music\<Album>\<Conductor>\<Album Artist>\<Title>\<Title> - <Artist>" which resulyt in destination on device as "/storage/emulated/0/Classical Music/The Ultimate Classic FM Album/Anthony Inglis/Various artists/Delibes- The Flower Duet (From 'Lakmé')/Delibes- The Flower Duet (From 'Lakmé') - Katherine Jenkins & Philharmonia Orchestra & Kiri Te Kanawa & Anthony Inglis.mp3" = 259 Chars path

If I change mask to "\Classical Music\<Album>\<Composer>\<Conductor>\<Album Artist>\<Title>\<Title> - <Artist>" sync file result is "/storage/emulated/0/Classical Music/The Ultimate Classic FM Album/Léo Delibes/Anthony Inglis/Various artists/Delibes- The Flower Duet (From 'Lakmé')/Delibes- The Flower Duet (From 'Lakmé') - Katherin.mp3" = 203 chars

Additional Informationhttps://www.mediamonkey.com/forum/viewtopic.php?t=103481
TagsNo tags attached.
Fixed in build

Relationships

related to 0012638 closedLudek MMW v4 Some files can fail to sync because of very long target paths 

Activities

martin

2023-01-30 17:18

developer   ~0071043

Tested, same behavior.
The filename is truncated on MM5 side and MMA gets it from MM_TargetPath attribute.

peke

2023-01-30 20:56

developer   ~0071045

Sample File is uploaded to FTP

Ludek

2023-01-31 17:36

developer   ~0071055

Last edited: 2023-01-31 17:40

Watching the code in TDeviceSynchronization.FormatTarget and there is intentionally the CutLongPath() function causing the trim.
This was intentional change implemented in course of 0012638

Resolving as "no change required" unless we want to remove this intentional limitation (which could cause rather more bad than good)?

Ludek

2023-01-31 17:44

developer   ~0071056

Re-opened to review whether we want to add an option/checkbox for this into
Sync Profile > File Locations

[x] Trim target paths to 260 chars

Assigned to Rusty to review the wording...

rusty

2023-01-31 18:35

administrator   ~0071058

We could use something like:
[ ] Trim paths to 260 characters
Tooltip: Shortens paths for devices that may not support unlimited path lengths

Note: ui/tooltip may change if we get more information about exactly what specific cases/environments require the use of trimming.