OpenOffice with KDE 3 behaves like saving will overwrite another file, even though there's the automatic file extension

Bug #270750 reported by Pascal d'Hermilly
4
Affects Status Importance Assigned to Milestone
kdelibs (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I have a folder with a text-file called opg1.
When I try to save a writer-document with automatic file-extension called opg1 it says that the file already exists. Yes, opg1 already exists, but writer is going to save the file as opg.odt, so it's not a problem.
However writer seems to think so :-)

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

What version of Ubuntu and OOo are you using? I can't reproduce this on Hardy with OOo 2.4.1

Changed in openoffice.org:
status: New → Incomplete
Revision history for this message
Pascal d'Hermilly (pascal-tipisoft) wrote :

Kubuntu Hardy 8.04, OO.o 2.4.1

Reproduction steps:
cd /tmp
touch opg3
soffice
 Save the file in /tmp as opg3. After clicking save it will tell you that the file already exists

I'm starting to belive that it's the kde save file dialog that isn't being told that the filename is going to be attached an extension, because it's the same dialog that I get in other KDE programs if I actually try to overwrite a file.

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Is this KDE 3 or 4?

Revision history for this message
Pascal d'Hermilly (pascal-tipisoft) wrote :

KDE 3, didn't test on KDE4

However is it a problem in KDE or is it openoffice that doesn't understand how to use the KDE file dialog?æ

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Confirmed by bbuss on #kubuntu

Changed in kdebase:
status: Incomplete → Confirmed
Changed in kdelibs:
importance: Undecided → Low
Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Marking as a duplicate of bug 338640 because both are caused by OOo doing this (pseudocode):
$basename = "foo"
$extension = "bar"
if ($basename exists) error!
else
    $filename = $basename.$extension
    save

The $filename = $basename.$extension should happen before the if statement

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.