Bug: Uppercase file extensions cause file to be renamed in Modern UI Details pane [Update]

%3CLINGO-SUB%20id%3D%22lingo-sub-309258%22%20slang%3D%22en-US%22%3EBug%3A%20Uppercase%20file%20extensions%20cause%20file%20to%20be%20renamed%20in%20Modern%20UI%20Details%20pane%20%5BUpdate%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3E%3CSTRONG%3EUpdate%2021-Feb-19%3C%2FSTRONG%3E%3A%20After%20being%20acknowledged%20by%20SharePoint%20Engineering%2C%20it%20seems%20this%20bug%20has%20been%20fixed%20now.%20I've%20tested%20on%20a%20couple%20of%20different%20tenants%2C%20including%20one%20on%20Standard%20Release.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20encountered%20an%20issue%20that%20we%20believe%20is%20a%20bug%20would%20be%20grateful%20if%20anyone%20could%20corroborate%20our%20findings.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20a%20file%20is%20uploaded%20to%20SharePoint%20Online%20with%20an%20uppercase%20file%20extension%20(for%20example%2C%20the%20native%20Snipping%20Tool%20in%20Windows%20saves%20files%20as%20%22.PNG%22%20rather%20than%20%22.png%22)%20and%20the%20Name%20field%20is%20clicked%20into%20in%20the%20Details%20pane%2C%20then%20the%20UI%20seems%20to%20get%20confused%20when%20trying%20to%20truncate%20the%20file%20extension%20from%20the%20filename%20and%20ends%20up%20duplicating%20the%20entire%20filename%20including%20the%20extension.%20When%20the%20user%20then%20just%20clicks%20away%20the%20file%20gets%20renamed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20are%202%20documents%20in%20a%20standard%20document%20library%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture0.PNG%22%20style%3D%22width%3A%20527px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64720i892D7FF578DF029E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Capture0.PNG%22%20alt%3D%22Capture0.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EOpening%20the%20Details%20pane%20and%20just%20clicking%20in%20the%20Name%20field%20results%20in%20the%20entire%20filename%20being%20duplicated%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture2.PNG%22%20style%3D%22width%3A%20305px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64723i062EF05926013F92%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Capture2.PNG%22%20alt%3D%22Capture2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3BSimply%20clicking%20away%20from%20the%20field%20(i.e.%20without%20making%20any%20edits)%20results%20in%20the%20Name%20field%20being%20updated%20and%20now%20the%20file%20has%20a%20double%20extension.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture3.PNG%22%20style%3D%22width%3A%20545px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64721iA4F058D0699869A0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Capture3.PNG%22%20alt%3D%22Capture3.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnd%20you%20can%20repeat%20the%20process%20over%20and%20over...%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture4.PNG%22%20style%3D%22width%3A%20539px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64719iC01C5C420FE4A83D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Capture4.PNG%22%20alt%3D%22Capture4.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBy%20comparison%2C%20a%20file%20uploaded%20with%20a%20lowercase%20file%20extension%20doesn't%20exhibit%20the%20same%20behaviour%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture5.PNG%22%20style%3D%22width%3A%20299px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64718i38DE45CD45088645%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Capture5.PNG%22%20alt%3D%22Capture5.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20else%20verify%20that%20they%20are%20experiencing%20the%20same%20issue%3F%20Our%20tenant%20is%20on%20Standard%20Release.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20appears%20the%20bug%20is%20also%20triggered%20by%20using%20the%20%22Edit%20all%22%20link%20in%20the%20Details%20pane.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CaptureMore1.PNG%22%20style%3D%22width%3A%20315px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65868i6CD7F8CECC027108%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22CaptureMore1.PNG%22%20alt%3D%22CaptureMore1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20the%20edit%20controls%20are%20rendered%20the%20user%20doesn't%20even%20need%20to%20click%20into%20the%20Name%20field%20as%20the%20UI%20has%20already%20duplicated%20the%20extension%20in%20the%20filename.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CaptureMore2.PNG%22%20style%3D%22width%3A%20640px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65870iD256DA980393517F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22CaptureMore2.PNG%22%20alt%3D%22CaptureMore2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EShould%20the%20user%20then%20click%20%22Save%22%20(with%20or%20without%20making%20any%20actual%20other%20metadata%20changes)%2C%20the%20file%20is%20saved%20with%20another%20instance%20of%20the%20extension%20tagged%20onto%20the%20end%20of%20the%20filename.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CaptureMore3.PNG%22%20style%3D%22width%3A%20816px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F65869i1B45CBCD3C7D6737%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22CaptureMore3.PNG%22%20alt%3D%22CaptureMore3.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-309258%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-309414%22%20slang%3D%22en-US%22%3ERe%3A%20Bug%3A%20Uppercase%20file%20extensions%20cause%20file%20to%20be%20renamed%20in%20Modern%20UI%20Details%20pane%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309414%22%20slang%3D%22en-US%22%3E%3CP%3EYup%2C%20I%20can%20confirm%20the%20behavior.%20Seems%20like%20yet%20another%20example%20of%20unproperly%20handled%20edge%20case%2C%20which%20is%20kind%20of%20the%20norm%20nowadays...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Update 21-Feb-19: After being acknowledged by SharePoint Engineering, it seems this bug has been fixed now. I've tested on a couple of different tenants, including one on Standard Release.

 

We have encountered an issue that we believe is a bug would be grateful if anyone could corroborate our findings.

 

If a file is uploaded to SharePoint Online with an uppercase file extension (for example, the native Snipping Tool in Windows saves files as ".PNG" rather than ".png") and the Name field is clicked into in the Details pane, then the UI seems to get confused when trying to truncate the file extension from the filename and ends up duplicating the entire filename including the extension. When the user then just clicks away the file gets renamed.

 

Here are 2 documents in a standard document library:

Capture0.PNG

Opening the Details pane and just clicking in the Name field results in the entire filename being duplicated:

Capture2.PNG

 Simply clicking away from the field (i.e. without making any edits) results in the Name field being updated and now the file has a double extension.

Capture3.PNG

And you can repeat the process over and over...

Capture4.PNG

By comparison, a file uploaded with a lowercase file extension doesn't exhibit the same behaviour:

Capture5.PNG

 

Can anyone else verify that they are experiencing the same issue? Our tenant is on Standard Release.

 

It appears the bug is also triggered by using the "Edit all" link in the Details pane.

CaptureMore1.PNG

 

When the edit controls are rendered the user doesn't even need to click into the Name field as the UI has already duplicated the extension in the filename.

CaptureMore2.PNG

 

 

 

Should the user then click "Save" (with or without making any actual other metadata changes), the file is saved with another instance of the extension tagged onto the end of the filename.CaptureMore3.PNG

1 Reply

Yup, I can confirm the behavior. Seems like yet another example of unproperly handled edge case, which is kind of the norm nowadays...