Issue 110216

Summary: TXT files with DOS lineends cannot be opened in headless mode and via API
Product: General Reporter: Marcus <marcus>
Component: codeAssignee: michael.ruess
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P2 CC: h.ilter, issues, kai.sommerfeld
Version: OOO310m19   
Target Milestone: OOo 3.2.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 109046    
Attachments:
Description Flags
ASCII file with DOS lineends none

Description Marcus 2010-03-18 11:53:42 UTC
When trying to open TXT files with DOS lineends (see attached sample) on a
UNIX-like system, then OOo doesn't open the file when in headless mode.

It's no problem when using the UI. Here the dialog for the filter selection is
shown and you can choose the appropriate options.
Comment 1 Marcus 2010-03-18 11:54:27 UTC
Created attachment 68412 [details]
ASCII file with DOS lineends
Comment 2 mikhail.voytenko 2010-03-22 10:06:22 UTC
The problem affects also a normal office as well. It is not possible to load
such document without InteractionHandler in the MediaDescriptor per API.
Adjusting priority, since the document can not be opened at all in some
scenarios based on scripted OOo.
Comment 3 mikhail.voytenko 2010-03-22 11:13:04 UTC
A simple script that allows to reproduce the problem in the normal office:

REM  *****  BASIC  *****
Sub Main
Dim noArgs()
oDesktop = CreateUnoService( "com.sun.star.frame.Desktop" )
oDesktop.loadComponentFromURL( "file:///<path to the file>/text.txt", "_blank",
0, noArgs() )
End Sub
Comment 4 mikhail.voytenko 2010-03-22 11:14:10 UTC
The fix is ready.
Comment 5 Marcus 2010-03-24 10:50:25 UTC
changed summary
Comment 6 mikhail.voytenko 2010-03-24 11:27:36 UTC
Fixed in cws sw321bf01.
Comment 7 mikhail.voytenko 2010-03-31 10:24:24 UTC
mav->mru: Please verify the issue.
Comment 8 michael.ruess 2010-04-06 16:21:57 UTC
Verified in CWS sw321bf01.
Comment 9 michael.ruess 2010-05-12 13:58:07 UTC
Checked in DEV300m77 and OOO320m17.