Issue 125679 - Sheet with encoded URL in its name does not open
Summary: Sheet with encoded URL in its name does not open
Status: REOPENED
Alias: None
Product: Calc
Classification: Application
Component: open-import (show other issues)
Version: 4.1.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 09:41 UTC by svanteschubert
Modified: 2014-10-27 13:41 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The second sheet of the document has an encoded URL as its sheet name (14.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-09-26 09:41 UTC, svanteschubert
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description svanteschubert 2014-09-26 09:41:11 UTC
Created attachment 83993 [details]
The second sheet of the document has an encoded URL as its sheet name

A document with an encoded file URL as sheet name is not being imported into latest Calc, only the first sheet is being shown.

The none reachable external source of the second sheet does not influence it, as renaming the sheet name in the XML to something naive fixes the problem.

Although the document is created from an old OOo 2.4 version this should not be a problem.
Comment 1 oooforum (fr) 2014-09-26 13:19:24 UTC
Attached file does not correspond to described issue.
Filename is ST_SpecialCharacter(1).ods and have just one sheet.
Comment 2 bmarcelly 2014-09-30 11:55:52 UTC
Reading the content.xml subdocument of your file, your second sheet is named:

'file://nandisrv2/OpenXML/ODF%20Translator%20Test/MS_Excel_Trans/Testing_Excel/Sanity_Excel/Input_Sanity_Excel/Testfeatures%20M4%20and%20M5%20Datarange.xlsx'#Sheet1

On a new spreadsheet, if I try to rename a sheet to this name, it is rejected.

A few tests show that OpenOffice rejects sheet names containing: 
- apostrophe as first character
- character /
- character :
Your sheet name contains all three cases.


I think that this issue is INVALID.
Comment 3 oooforum (fr) 2014-10-26 10:49:08 UTC
According with bmarcelly's comment, status changed to NOT_AND_ISSUE
Comment 4 svanteschubert 2014-10-26 11:18:33 UTC
You argumentation is that as AOO does not create the given document state with the GUI the bug is not valid.

May I point out that the given state was created by AOO with the MS Office import filter and that there are documents out there with this state, which can not be loaded.

If you fully aware of the above facts, please make chain of logic a little more easier to reproduce, as some user face the problem to open the document and will hardly understand that this is not a problem at all ;)
Comment 5 bmarcelly 2014-10-26 20:51:18 UTC
(In reply to svanteschubert from comment #4)
> May I point out that the given state was created by AOO with the MS Office
> import filter and that there are documents out there with this state, which
> can not be loaded.

So the problem is in the import of an MS Office document.
But you only provided an ODF document...

Attach an original MS Office document so the developers can :
- see what it looks like on MS Office
- decide what to do on importing such document into OpenOffice.
Comment 6 svanteschubert 2014-10-27 13:41:27 UTC
ODF allows any string in the table name.
The name might be long and might contain special characters, but it is valid.

<table:table table:name="&apos;file://nandisrv2/OpenXML/ODF%20Translator%20Test/MS_Excel_Trans/Testing_Excel/Sanity_Excel/Input_Sanity_Excel/Testfeatures%20M4%20and%20M5%20Datarange.xlsx&apos;#Sheet1" table:style-name="ta2" table:print="false">

The document is a valid ODF and there is any restriction in loading the document is the bug. 
Unless of course someone is programming Cobol and added an 8 character String restriction, which is AFAIK not a problem of he office ;)