Bug 473985

Summary: "oocalc this-is-a-dir" finishes immediately
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: openoffice.orgAssignee: David Tardon <dtardon>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: caolanm, jnavrati
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-01 10:50:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Horst H. von Brand 2008-12-01 18:02:08 UTC
Description of problem:
I wanted to create a spreadsheet with the name of an existing directory, and did the above. oocalc finished immediately, no error message or anything. If doing the same with a random file, it opens them as CSV formated (even if it makes no sense).

Version-Release number of selected component (if applicable):
openoffice.org-calc-3.0.0-9.11.fc11.x86_64

How reproducible:
Always

Steps to Reproduce:
1. mkdir somedir
2. oocalc somedir
3.
  
Actual results:
oocalc finishes immediately

Expected results:
An error message about wrong input? Create somedir.ods by default? Open an unnamed spreadsheet and tell user something is amiss?

Additional info:

Comment 1 Caolan McNamara 2008-12-01 23:06:27 UTC
caolanm->dtardon: want to take this one. Should be straight-forward. i.e.

oocalc /tmp/not-exist.ods gives "not-exist.ods does not exist"

so some similar error on trying to open a dir might be a good idea, and while we're at it see 

touch /tmp/not-there
oocalc /tmp/not-there

I get a crash, that should also be straight-forward to resolve and a good thing to do.

Comment 2 Horst H. von Brand 2008-12-08 18:38:37 UTC
Now openoffice.org-calc-3.0.1-12.3.fc11.1.x86_64

"oocalc /tmp/not-there.ods gives "/tmp/not-there.ods does not exist", but twice.

"oocalc /tmp/empty" opens a dialog for opening a text file, and then opens an empty spreadsheet. This is fixed.

"oocalc /tmp" still exits immediately.

Comment 3 Horst H. von Brand 2008-12-12 17:11:01 UTC
openoffice.org-calc-3.0.1-13.2.fc11.x86_64, still as in #2

Comment 4 Caolan McNamara 2009-04-17 22:27:22 UTC
Any progress on this ? Feasible to fix, or impractically difficult ?

Comment 5 David Tardon 2009-04-22 13:55:52 UTC
Fix committed to F-11 and Rawhide. Will be in 3.1.0-10.3 .

Comment 6 Caolan McNamara 2009-05-01 10:50:16 UTC
I get "not a file" on it, good enough.