You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2015/11/26 07:28:28 UTC

[Issue 126700] New: ODT created in 2.1 version is not working 4.1.1

https://bz.apache.org/ooo/show_bug.cgi?id=126700

          Issue ID: 126700
        Issue Type: DEFECT
           Summary: ODT created in 2.1 version is not working 4.1.1
           Product: App Dev
           Version: 4.1.1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: api
          Assignee: issues@openoffice.apache.org
          Reporter: hkumari@ciber.com

Created attachment 85172
  --> https://bz.apache.org/ooo/attachment.cgi?id=85172&action=edit
Sample of ODT that is cauing issue

Description :
We have a web application with .NET framework 4.5.2 and c#. The operating
system is Windows 8. It runs in IIS version 7.5. We are using Open office 4.1.1
for generating documents.
We have more than 100 templates created using openoffice 2.1 version. The same
templates we are using to generate documents using openoffice 4.1.1.
 After generating  the document its getting converted as MS word of version MS
Office 2003, During the conversion process to word, we are getting the below
errors only for few templates.
ISSUE 1 : 
URL seems to be an unsupported one

- Exception occurred: URL seems to be an unsupported one.

ISSUE 2 : 
Type 'unoidl.com.sun.star.lang.IllegalArgumentException' in Assembly
'cli_uretypes, Version=1.0.9.0, Culture=neutral,
PublicKeyToken=ce2cb7e279207b9e' is  not marked as serializable.

- Exception occurred: Type 'unoidl.com.sun.star.lang.IllegalArgumentException'
in  
Assembly 'cli_uretypes, Version=1.0.9.0, Culture=neutral,
PublicKeyToken=ce2cb7e279207b9e' is not marked as serializable.
Source: mscorlib


Attached the sample ODT; which is causing the problem

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #4 from Hemlata <hk...@ciber.com> ---
Yes Open office 2,1 version is very old one. So, we planned to migrate to new
version.
But after migration we are facing this issue.

You have seen so many placeholder in the attached odt. We bring data from
database and then finally we create odt(with actual data) and then we convert
this odt file to .doc file.

On converting, we are getting issue. again we rollback to 2.1. Its working fine

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

orcmid <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |orcmid@apache.org

--- Comment #2 from orcmid <or...@apache.org> ---
Created attachment 85176
  --> https://bz.apache.org/ooo/attachment.cgi?id=85176&action=edit
Error Message with Sample and AOO 4.1.2

(In reply to oooforum from comment #1)
> OOo 2.1 is very old (2006). I don't remember when ODF format has been
> upgraded from 1.0/1.1 to 1.2 (extended). 
> 
> Your document opens fine with AOO 4.1.2 and Win7 x64 Pro.
> I don't have "URL seems to be an unsupported one".
> Could you provide a step-by-step procedure to reproduce?

The defect occurs when saving the document as .doc (Word 97-2003).

For the provided sample, I obtained the attached error message while the export
to .doc was happening.  

PS: The document is identified as in ODF 1.1 format, having been generated from
OpenOffice 2.2 (originally created on 2012-03-06 with the particular sample
saved on 2014-06-11).  It is unlikely that a breaking change between ODF
1.0/1.1 and ODF 1.2 is an issue.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #19 from Hemlata <hk...@ciber.com> ---
Thank you so much Regina.

The solution you provided fixed the ISSUE 1 ( COMMENT 11).

Same solution we tried for ISSUE 2 ( comment 11 ) but i did not work. Please
help us to resolve the ISSUE 2.

Thanks in Advance,
Hema

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #13 from Hemlata <hk...@ciber.com> ---
Hi Regina,

Thanks for your Information.

But we are not able to catch what you said.We are not abel to get manifest.xml
file form document.Please provide more information.

Thanks,
Hema

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

oooforum (fr) <oo...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |viramachandran@ciber.com

--- Comment #20 from oooforum (fr) <oo...@free.fr> ---
*** Issue 126983 has been marked as a duplicate of this issue. ***

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

Regina Henschel <rb...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P5 (lowest)                 |P4
     Ever confirmed|0                           |1
           Keywords|                            |regression
             Status|UNCONFIRMED                 |CONFIRMED
            Version|4.1.1                       |3.4.1

--- Comment #18 from Regina Henschel <rb...@t-online.de> ---
The file opens in portable OOo 2.4.1 and after re-save without changes, the
re-saved file can be opened in AOO4.1.2. Opening already fails in OOo3.2.1.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #6 from Hemlata <hk...@ciber.com> ---
Created attachment 85453
  --> https://bz.apache.org/ooo/attachment.cgi?id=85453&action=edit
TEMPLATE-A

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #9 from Hemlata <hk...@ciber.com> ---
Created attachment 85456
  --> https://bz.apache.org/ooo/attachment.cgi?id=85456&action=edit
TEMPLATE-B-GENERATED-ODT

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #10 from Hemlata <hk...@ciber.com> ---
Created attachment 85457
  --> https://bz.apache.org/ooo/attachment.cgi?id=85457&action=edit
TEMPLATE-A-ErrorMessage

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #3 from orcmid <or...@apache.org> ---
Created attachment 85177
  --> https://bz.apache.org/ooo/attachment.cgi?id=85177&action=edit
Exception caught by Windows in the AOO 4.1.2 .doc export

(In reply to orcmid from comment #2)
> Created attachment 85176 [details]
> Error Message with Sample and AOO 4.1.2
[ ... ]
> The defect occurs when saving the document as .doc (Word 97-2003).
> PS: The document is identified as in ODF 1.1 format, having been generated
> from OpenOffice 2.2 (originally created on 2012-03-06 with the particular
> sample saved on 2014-06-11).  It is unlikely that a breaking change between
> ODF 1.0/1.1 and ODF 1.2 is an issue.
Correction: the document is identified as in ODF 1.0 format.  (The OOo 2.x were
all ODF 1.0/1.1, the OOo 3.x began ODF 1.2 as I recall).

Here is the "Debug" report from the failure message in the previous attachment.
 The problem is an uncaught Windows exception.  Brief examination of the .ODT
does not reveal any obvious defect.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #14 from Regina Henschel <rb...@t-online.de> ---
How does your application create the file?

You should try, whether your application writes valid files, if you use a basic
document, which has been created in AOO version 4.1.1. If that works, you only
need a new "TEMPLATE".

You can try this way too: Take a new Writer document in version 4.1.1. Then
insert the old document via menu Insert > File... Make correction as needed and
use that file as new "TEMPLATE".


The odt file is actually a zip container. You can look into the container, on
Windows using 7-zip for example. Then you see the folder META-INF. Go into it
and you see the file manifest.xml. Open it with an editor, here on Windows I
use "XML Notepad 2007" for that. When you have corrected the file save it and
close the editor. 7-zip ask you whether the content in the archive should be
updated. Agree. Then try, whether your application makes a valid file now.

You find details about odf package in
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part3.html

I cannot guarantee, that it will work with a correct manifest, because I do not
know your application.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #11 from Hemlata <hk...@ciber.com> ---
ISSUE 1 : ( PLEASE REFER THE DESCRIPTION SECTION ISSUE 1)
URL seems to be an unsupported one:

We just wants to add more details on this issue. Please check the below
details. 

We have attached the Template which has placeholders to store information
retrieved from database, for your reference ( see attached TEMPLATE-A ), which
is working fine with OOP 2.1 without any issues.  As we mentioned our
application retrieves information from database and fills in template
placeholders and creates an ODT file and saves in the folder. Then our
application tries to convert the odt file to word doc. Everything  works
perfectly in OOP2.1.

But when we use OOP4.1.1, our application creates the odt file and saves in the
folder. But after that our application not able to open the odt as the odt is
corrupted. We are getting some error message when manually try to open the odt
file with OOP4.1.1

We have attached the odt file which we manually not able to open with OOP4.1.1
( see attached TEMPLATE-A-GENERATED-ODT ) and we have attached the error
message what we got when manually open the odt file ( see attached
TEMPLATE-A-ErrorMessage. ). The error message says YES or NO. If we click yes
then the file opens without any issue and we are able to see all the content
loaded from database.

What could be the reason for the odt file is being corrupted?
Why this issue happens only in OOP4.1.1 and only to specific templates?  (Note
: We have more than  400 templates and almost all templates works without any
issues with OOP4.1.1)


ISSUE 2 : 
Binary URP bridge disposed during call

Here the issue bit different from ISSUE 1. 

We have attached the Template which has placeholders to store information
retrieved from database, for your reference ( see attached TEMPLATE-B ), which
is working fine with OOP 2.1 without any issues.  As we mentioned our
application retrieves information from database and fills in template
placeholders and creates an ODT file and saves in the folder. Then our
application tries to convert the odt file to word doc. Everything  works
perfectly in OOP2.1.

But when we use OOP4.1.1, our application creates the odt file and saves in the
folder.. We are able to open the odt file with OOP4.1.1 Manually. Here the odt
file is created without any issue and we are able to see all the content loaded
from database . But still we are getting the error message “Binary URP bridge
disposed during call “ while our application trying to convert to word file
from odt file.  

We have attached the odt file which we manually able to open with OOP4.1.1 
without any issue( see attached TEMPLATE-B-GENERATED-ODT ) 

Why this issue happens only in OOP4.1.1 and only to specific templates?  (Note
: We have more than  400 templates and almost all templates works without any
issues with OOP4.1.1)

We would like to have a call with you guys. Please provide us any contact
number to call. That would be very help full. 

Thanks in Advance.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #5 from Hemlata <hk...@ciber.com> ---
Hi Orcmid,

Please help us.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

orcmid <or...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|orcmid@apache.org           |

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

Regina Henschel <rb...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb.henschel@t-online.de

--- Comment #12 from Regina Henschel <rb...@t-online.de> ---
Your manifest.xml (in folder META-INF) differs from the actual content in
"TEMPLATE-A-GENERATED_ODT". Please make your application write a correct
manifest.xml and then try it again.

BTW: You document is not a template, but a text document with user-fields.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

oooforum <oo...@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oooforum@free.fr

--- Comment #1 from oooforum <oo...@free.fr> ---
OOo 2.1 is very old (2006). I don't remember when ODF format has been upgraded
from 1.0/1.1 to 1.2 (extended). 

Your document opens fine with AOO 4.1.2 and Win7 x64 Pro.
I don't have "URL seems to be an unsupported one".
Could you provide a step-by-step procedure to reproduce?

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #8 from Hemlata <hk...@ciber.com> ---
Created attachment 85455
  --> https://bz.apache.org/ooo/attachment.cgi?id=85455&action=edit
TEMPLATE-B

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #15 from Hemlata <hk...@ciber.com> ---
Created attachment 85502
  --> https://bz.apache.org/ooo/attachment.cgi?id=85502&action=edit
Manifest.xml  of  TEMPLATE-A-GENERATED-ODT

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #16 from Hemlata <hk...@ciber.com> ---
Hi Regina,

Thanks for the information. We are able to extract the manifest.xml file for
template TEMPLATE-A-GENERATED-ODT and we have attached the same.

Please guide us what is wrong with this manifest.xml file and what needs to be
chenaged in manifest.xml file.?


Thanks,
Hema.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #17 from Regina Henschel <rb...@t-online.de> ---
Created attachment 85503
  --> https://bz.apache.org/ooo/attachment.cgi?id=85503&action=edit
File resaved by portable OOo 2.4.1

I give up. The document TEMPLATE-B-GENERATED-ODT is "corrupt", but I do not
find all errors, to make it work, and have no time for further investigation. 

If you compare the document TEMPLATE-A with the document
TEMPLATE-A-GENERATED-ODT, you see, that some folders and files are missing.
Therefore the file manifest.xml lists elements, which are not contained in the
package.

In addition I have found a style:style element without name.

And I have found, that a lot of styles are duplicate.

But solving all these, does not repair the file. Or I have not found all of
such problems. But I agree, that a file, which opens in OOo 2.4 should open in
OOo3 as well.

I have tried something different, which might help you. I have opened the file
TEMPLATE-A-GENERATED-ODT in a portable version of OOo2.4.1. and resaved it
without any change. The re-saved file opens in AOO 4.1.2. So you might find the
problem, by comparing the files.

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

[Issue 126700] ODT created in 2.1 version is not working 4.1.1

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=126700

--- Comment #7 from Hemlata <hk...@ciber.com> ---
Created attachment 85454
  --> https://bz.apache.org/ooo/attachment.cgi?id=85454&action=edit
TEMPLATE-A-GENERATED-ODT

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