[Libreoffice-bugs] [Bug 52306] New: FILEOPEN: TXT files with DOS lineends cannot be opened in headless mode and via API

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 20 21:37:57 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=52306

             Bug #: 52306
           Summary: FILEOPEN: TXT files with DOS lineends cannot be opened
                    in headless mode and via API
    Classification: Unclassified
           Product: LibreOffice
           Version: 3.5.0 release
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: Writer
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: jim-libreoffice at spudsoft.co.uk


Problem description: 
LibreOffice 3.5 seems to be affected by this issue from OpenOffice.
https://issues.apache.org/ooo/show_bug.cgi?id=110216

Attempting to open a text file using loadComponentFromURL fails unless the line
ends are correct for the machine that LibreOffice is being run on.

Steps to reproduce:
1. On a Linux box, call loadComponentFromURL with a path to a text file with
DOS line endings.
2. Specify:
            propValuesIn.add(new PropertyValue("ReadOnly", -1, true,
PropertyState.DIRECT_VALUE));
            propValuesIn.add(new PropertyValue("OpenNewView", -1, true,
PropertyState.DIRECT_VALUE));
            propValuesIn.add(new PropertyValue("Silent", -1, true,
PropertyState.DIRECT_VALUE));
            propValuesIn.add(new PropertyValue("UpdateDocMode", -1, 0,
PropertyState.DIRECT_VALUE));
            propValuesIn.add(new PropertyValue("Hidden", -1, true,
PropertyState.DIRECT_VALUE));

Current behavior:
loadComponentFromURL returns null (no error)

Expected behavior:
loadComponentFromURL should open the document.
loadComponentFromURL should never just return null.

Platform (if different from the browser): 
Centos 6.

Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like
Gecko) Chrome/20.0.1132.57 Safari/536.11

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list