[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2019-04-25 Thread Marcus Tomlinson
** Also affects: df-libreoffice via
   https://bugs.documentfoundation.org/show_bug.cgi?id=122075
   Importance: Unknown
   Status: Unknown

** Changed in: libreoffice (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in LibreOffice:
  Unknown
Status in libreoffice package in Ubuntu:
  Fix Released

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-13 Thread KarlRelton
Submitted upstream:
https://bugs.documentfoundation.org/show_bug.cgi?id=122075

** Bug watch added: Document Foundation Bugzilla #122075
   https://bugs.documentfoundation.org/show_bug.cgi?id=122075

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  New

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-12 Thread Olivier Tilloy
I can confirm the issue described in comment #7 (the "strain of the
bug").

Not sure whether it's a GTK3 bug or a libreoffice one. Would you mind
filing an upstream bug report at
https://bugs.documentfoundation.org/enter_bug.cgi?product=LibreOffice=guided
and sharing the link to it here? Thanks!

** Changed in: libreoffice (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  New

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-12 Thread KarlRelton
Right - I have managed to force over my libreoffice to using ps (uncheck
the 'PDF as standard print job format' option, click Okay, and let lo
restart).


When in 'PS' mode, you are correct that the bug as I have described does not 
manifest. I conclude that it only manifests when in 'PDF' mode.


However, even in 'PS' mode you can see a strain of the bug. Ensure you have in 
your directory a 'sample.ps' file (can be empty). Follow through steps 1 to 6d 
(changing pdf to ps).

Then click on 'Any Type' and change to 'PostScript'. On my system I then
observe that my edited filename in the name type-in field has been
changed, and another ps file (probably sample.ps) has been selected in
the chooser.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  Incomplete

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-12 Thread KarlRelton
Hmmm - somewhat curious that your setup is locked into ps and mine is
pdf with no apparent way of switching.

But in step 6-c it is important to click on a file name in the chooser,
and then edit it in the type in field. The bug doesn't manifest if you
just edit the name type in field to the desired file name.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  Incomplete

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-12 Thread Olivier Tilloy
Neither option made a difference here.

 a) 'PDF as a standard print job format' was already checked

 b) tried ps instead of pdf, but 'test_2.ps' gets written as expected

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  Incomplete

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-12 Thread KarlRelton
Okay - your print defaults are to 'print to ps' rather than 'print to
pdf'.

So to recreate the steps you can either:

a) Go to Tools -> Options -> Print -> and enable 'PDF as standard print
job format, then re-run the steps

OR

b) wherever in my steps I say 'pdf' or filename.pdf, change to 'ps' and
filename.ps

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  Incomplete

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-12 Thread Olivier Tilloy
I cannot observe the issue here (tested in disco and cosmic). I followed
the instructions step by step and ended up with a "test_2.pdf" file in
the folder.

Also, the print-to-file GTK3 dialogue doesn't have a PDF type selector,
only "All Formats", "PostScript" and "Any type".

Can you please run "apport-collect 1807744" to attach useful debug
information to the bug?

** Changed in: libreoffice (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  Incomplete

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-11 Thread KarlRelton
>I think the bug happens when the dialogue self-flips the type selector
to 'Portable Document Format'.

Yep ... if I manually flip the type selector to 'Portable Document
Format' it loses my desired file name and pseudo-randomly selects a pdf
file from the list of files in the folder.

So there are actually 2 incorrect behaviours going on:
1) changing type selector to 'Portable Document Format' should not change the 
file name in the 'name' field IF the user has already made some edits in that 
field (i.e. has taken the trouble to choose a name)

2) pressing Enter (or Save button) should not trigger the type selector
to change

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  New

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1807744] Re: Print to File writes to incorrect file

2018-12-10 Thread KarlRelton
This screenshot manages to show the problem.

Here I have typed in the 'Name' field 'test_2.pdf' when I already have
that filename in my folder (as well as the dummy sample.pdf). I then
press Enter, expecting to get the confirmation dialogue box asking about
overwriting the file.

The confirmation box appears, but look at it carefully compared to what
the FileChooser GTK3 widget is now showing behind it: the confirmation
box shows name 'test_2.pdf' (which is what I typed), and the GTK3 widget
not shows 'sample.pdf' (and also has changed the type selector to
'Portable Document Format'. Pressing 'okay' results in 'sample.pdf'
being overwritten.

I think the bug happens when the dialogue self-flips the type selector
to 'Portable Document Format'.

** Attachment added: "Screenshot from 2018-12-10 17-08-18.png"
   
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+attachment/5220930/+files/Screenshot%20from%202018-12-10%2017-08-18.png

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1807744

Title:
  Print to File writes to incorrect file

Status in libreoffice package in Ubuntu:
  New

Bug description:
  This bug only occurs when using the GTK3 dialogues (libreoffice-gtk3
  installed).

  Under certain conditions print to file over-writes an existing pdf
  file in the chosen folder which doesn't match the name chosen by the
  user (and without any warning or confirmation dialog).

  Steps to reproduce are:
  1) Create an empty directory (folder)
  2) Put in directory a dummy pdf (e.g. touch sample.pdf)
  3) Open libreoffice and create a writer document with a few words
  4) Save the libreoffice document to the directory as a regular writer doc 
(e.g. 'test.odt')
  5) Do 'File -> Print' and choose 'Print to File'
  6) In the (gtk3) File-chooser dialog:
6a) navigate to the folder created in step 2
6b) select 'Any Type' in the 'types of file shown' selector
6c) click on the file name 'test.odt'
6d) in the 'Name' text field, then edit the name from 'test.odt' to 
'test_2.pdf'
6e) then press 'Enter' (or click on 'Select')
  7) Observe that in the folder there is no file 'test_2.pdf'. However the 
dummy file 'sample.pdf' has been over-written and contains the pdf that 
resulted from the 'print to file' operation

  -->What should of happened is that the file 'test_2.pdf' should have
  been created as a pdf of the writer document.

  --
  Some notes:

  - Occurs in Libreoffice 6.1.2.1 (Build ID: 1:6.1.2-0ubuntu1.1) and older 
versions
  - Only occurs using the gtk3 file browser. Native libreoffice is okay (not 
tested old gtk2 code)
  - Only occurs if you first click on 'Any Type'. If you simply type a file 
name without first going to 'Any Type' it doesn't manifest the bug
  - Only occurs if the file name you type has the '.pdf' extension. If you do a 
name without it, then it doesn't manifest the bug

  lsb_release -rd
  Description:  Ubuntu 18.10
  Release:  18.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1807744/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp