https://bugs.documentfoundation.org/show_bug.cgi?id=146718

            Bug ID: 146718
           Summary: Crash in: SwDBManager::MergeMailFiles(SwWrtShell
                    *,SwMergeDescriptor const &) - Mailmerge print form
                    letter, individual documents, path with non-existing
                    user
           Product: LibreOffice
           Version: 7.1.8.1 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

This bug was filed from the crash reporting server and is
br-0d94ea8f-0ca3-42a0-b77b-c319b7b03519.
=========================================

# Description

## Actual Behaviour

Using the mail merge feature to create and save individual documents, the save
folder path can look like it is within a user profile folder that doesn't
exist. 

In that case, LibreOffice crashes when the mail merge is started. And the error
dialogue shown might not help users find what is wrong; it says 'Action not
supported. This operation is not supported on this operating system.' 

The save folder path was as such for me after I had renamed my user profile
folder since the previous time that I had done a mail merge, and the path field
was already populated with the path I had previously used. 

The path field can also be manually written into, so a user could make it as
such by a simple mistake. 

Unknown whether the path field would also populate as such if you had
previously targeted a path within another user's profile and had since removed
that user from your computer.

## Expected behaviour

User to be alerted that the chosen output folder path doesn't exist and can't
be created.

# Steps to reproduce

1. Environment: Windows 10 Verison 21H2

2. Have a registered database.

   1. Have a spreadsheet file with tabular data in it.
   2. From LibreOffice, click to create a new Base Database.
   3. Choose 'Connect to an existing database', pick 'Spreadsheet', click
'Next'.
   4. Click 'Browse', select the spreadsheet with the data and click 'Open',
then click 'Next'.
   5. Select 'Yes, register the database for me', and click 'Finish'.

3. Add a field from data sources to a Writer document

   1. From LibreOffice, click to create a new Writer Document
   2. Save the document as the type 'ODF Text Document (.odt)'.
   3. From the menu bar, click 'View' > 'Data Sources'.
   4. Navigate to the table in the data sources explorer.
   5. Drag from a field heading into the document.

4. From the menu bar, click 'File' > 'Print'.

5. You are asked if you want to print a form letter, click 'Yes'.

6. Under 'Output' select 'File'.

7. Under 'Save merged document' select 'Save as individual documents'.

8. Change the path so that it looks to be within a user profile folder that
does not exist, eg 'C:\Users\johnsmith\Documents' if you do not have a user on
your computer called johnsmith.

9. Click 'OK'.

10. An error dialogue says 'Action not supported. This operation is not
supported on this operating system.'

11. Click 'OK' then LibreOffice crashes. Document Recovery window appears. Mail
Merge progress window remains with 'not responding'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to