Bug 123227 - "'Save as' has failed"-event is not called if the user saves to the original file
Summary: "'Save as' has failed"-event is not called if the user saves to the original ...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.1.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-07 14:45 UTC by Jean-Louis Fuchs
Modified: 2019-10-12 02:47 UTC (History)
1 user (show)

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 Jean-Louis Fuchs 2019-02-07 14:45:30 UTC
Description:
I want to guide the user in a special case where saving fails in our environment. I assigned a macro to "'Save as' has failed"-event, in the case the user tries to "Save as" the document to the original file, the event is not triggered.

I assume in that case LibreOffice will switch to the save-codepath where the event is not triggered.

Steps to Reproduce:
1. Create a sub

Sub MyEvent(Event As Object)
	MsgBox "hello"
End Sub

2. Tools > Macros > Organize Macros > LibreOffice Basic...
3. Assign > Events > "'Save as' has failed"
4. Macro...
5. Select the MyEvent Sub
6. Save the document somewhere
7. Make the document readonly (chmod 444 doc.odt)
8. "Save as..." select the same location and filename as in step 6.

Actual Results:
Error message, but the "'Save as' has failed"-event is not triggered

Expected Results:
Error message + "'Save as' has failed"-event 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.1.4.2
Build ID: 6.1.4.2-1.fc29
CPU threads: 4; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group threaded
Comment 1 Xisco Faulí 2019-03-14 18:48:05 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 QA Administrators 2019-09-11 04:39:18 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-10-12 02:47:15 UTC
Dear Jean-Louis Fuchs,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp