Issue 110216 - TXT files with DOS lineends cannot be opened in headless mode and via API
Summary: TXT files with DOS lineends cannot be opened in headless mode and via API
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOO310m19
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 3.2.1
Assignee: michael.ruess
QA Contact: issues@framework
Depends on:
Blocks: 109046
  Show dependency tree
Reported: 2010-03-18 11:53 UTC by Marcus
Modified: 2010-05-12 13:58 UTC (History)
3 users (show)

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

ASCII file with DOS lineends (10 bytes, text/plain)
2010-03-18 11:54 UTC, Marcus
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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( "" )
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.