Bug 152131 - MacOS: Dragging document (proxy icon) from window header bar to another location copies wrong document version
Summary: MacOS: Dragging document (proxy icon) from window header bar to another locat...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: x86 (IA32) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-19 22:31 UTC by Andrew Katz
Modified: 2022-12-21 12:53 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Katz 2022-11-19 22:31:52 UTC
If you use the MacOS feature to drag the document icon in the Window title bar to another location (such as a folder or an email), if the same document was loaded under a particular filename and then saved using Save As... to a different filename, the unamended document under the original filename gets dragged, as oppposed to the most recent version.  

To reproduce this bug:

1. Create a new text document in LibreOffice Writer. Type "this is the original document" into the document. 

2. Save it under the name "Test.odt".

3. Type "And this is an amendment" into the document.

4. Save it under the name "Test001.odt".

5. Drag the document icon from the title bar of the window to another location (such as the desktop). You will find that the dragged document is "Test.odt" and not "Test001.odt". If you open the dragged file, you will see that it does not contain the words "And this is an amendment". 


The correct behaviour would be for the dragged document to be Test001.odt, and for it to contain the words "And this is an amendment". 

Thanks


Andrew
Comment 1 Mike Little 2022-11-21 05:35:40 UTC
This test was performed on:
Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Mac OS X 13.0; UI render: default; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded


To reproduce this bug:

1. Create a new text document in LibreOffice Writer. Type "this is the original document" into the document. 
>>MJL: Done. 

2. Save it under the name "Test.odt".
>>MJL: Done. 

3. Type "And this is an amendment" into the document.
>>MJL: Done. 


4. Save it under the name "Test001.odt".
>>MJL: Done, document saved as Test001.odt as the same path as "Test.odt".


5. Drag the document icon from the title bar of the window to another location (such as the desktop). You will find that the dragged document is "Test.odt" and not "Test001.odt". If you open the dragged file, you will see that it does not contain the words "And this is an amendment". 

>>MJL:  Need to explain “Drag the document icon from the title bar of the window” … can you provide screen shot?  Which window? The LibreOffice “Start centre”, or a MacOS Finder window? I am assuming and testing for a MacOS “Finder” window, and dragging the Test001.odt to the desktop… 

Sorry, I opened the dragged file, and it contained the words “And this is an amendment” 

>> Conclusion: I was not able to confirm the behaviour. Can you provide screen shots of the action: “Drag the document icon from the title bar of the window to another location (such as the desktop)”?
Comment 2 Andrew Katz 2022-11-21 11:37:56 UTC
Thanks Mike - I appreciate you responding so quickly. 

FYI, I'm using LibreOffice version as follows and MacOS Ventura 13.0.1

Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 16; OS: Mac OS X 13.0.1; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

So, I am still getting the issue. And it's even more strange!

Here's what I'm doing now. 

1. I'm starting with Writer not running.

2. Open Writer, and click on "Create:/ Writer Document" on the sidebar of the window which opens.

3. A window opens with Untitled 1 in the title bar

4. I type "This is the original document" into the new document. 
(See: https://cloud.orcro.eu/s/ySaEMLWcqKTP6pd for screenshot)

5. I select File/Save As... and save as Test.odt. The directory is my default Document directory. 
6. Note that there is no draggable icon next to "Test.odt" on the title bar (see screenshot). You'll note that the "unsaved" indicator (black dot) in the red window control button (top left corner) is NOT showing (i.e. indicating that the document is saved)

7. I type "And this is an amendment" into the document. The black dot ("unsaved" indicator (correctly) shows). 

8. I select "File/Save As..." and save the document as Test001.odt. The icon is now showing.
See https://cloud.orcro.eu/s/eX8BZAcN5ktgrTB for screenshot) 

9. I drag the icon next to Test001.odt in the title bar onto the desktop. As the icon leaves the document window and hovers over the desktop, the name of the file changes to "Test.odt". If I open that file, it contains the content of Test.odt. The same behaviour occurs if I drag it into a Finder window displaying the content of a different directory. 
For screenshot, see: https://cloud.orcro.eu/s/spef8mosdsg89yE


10. If I try to repeat the drag operation, I get an error box saying document drag error.
For screenshot see https://cloud.orcro.eu/s/YAHGBq683fgwYNY


Thanks


Andrew
Comment 3 Mike Little 2022-11-23 21:56:27 UTC
Hello Andrew, thank you for the screen shots.. they really helped me understand the problem and the expected behaviour… 

OK…
Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Mac OS X 13.0; UI render: default; VCL: osx
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

See my comments, “MJL>>” below…


1. I'm starting with Writer not running.

MJL>> Done

2. Open Writer, and click on "Create:/ Writer Document" on the sidebar of the window which opens.

MJL>> Done

3. A window opens with Untitled 1 in the title bar

MJL>> I observed this, Confirmed.

4. I type "This is the original document" into the new document. 
(See: https://cloud.orcro.eu/s/ySaEMLWcqKTP6pd for screenshot)

MJL>> Done.

5. I select File/Save As... and save as Test.odt. The directory is my default Document directory. 

MJL>> Done.


6. Note that there is no draggable icon next to "Test.odt" on the title bar (see screenshot). You'll note that the "unsaved" indicator (black dot) in the red window control button (top left corner) is NOT showing (i.e. indicating that the document is saved)

MJL>> I observed this, Confirmed.


7. I type "And this is an amendment" into the document. The black dot ("unsaved" indicator (correctly) shows). 

MJL>> Done.


8. I select "File/Save As..." and save the document as Test001.odt. The icon is now showing.
See https://cloud.orcro.eu/s/eX8BZAcN5ktgrTB for screenshot) 

MJL>> I observed this, Confirmed.



9. I drag the icon next to Test001.odt in the title bar onto the desktop. As the icon leaves the document window and hovers over the desktop, the name of the file changes to "Test.odt". If I open that file, it contains the content of Test.odt. The same behaviour occurs if I drag it into a Finder window displaying the content of a different directory. 
For screenshot, see: https://cloud.orcro.eu/s/spef8mosdsg89yE

MJL>> I observed this, Confirmed.


10. If I try to repeat the drag operation, I get an error box saying document drag error.
For screenshot see https://cloud.orcro.eu/s/YAHGBq683fgwYNY

MJL>> I observed this, Confirmed.


CONCLUSION: THIS BEHAVIOR IS CONFIRMED, AND I WOULD CONSIDER IT A DEFECT.
Comment 4 Mike Little 2022-11-23 22:04:12 UTC
I have chosen the NEEDINFO  status, as I believe this will need to be escalated to development.
Comment 5 Buovjaga 2022-11-24 07:50:18 UTC
Status should be NEW per confirmation.