Issue 512

Summary: loadComponentFromUrl finds no filters
Product: udk Reporter: schulten
Component: codeAssignee: Mathias_Bauer
Status: CLOSED FIXED QA Contact: issues@www <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: 619   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description schulten 2001-03-06 07:39:38 UTC
Loading existing documents through the API from Java and StarBasic doesn't work 
in 619, an exception says the filter doesn't exist although I don't specify a 
filter, rather OO itself selects the filter.

Exception:
FilterFactory::GetByName()
Specified filter not exist!

(BTW: there seems to be a typo in the exception message. Maybe not found would 
be closer to the truth anyway, after all the filter does exist!)


Sample:

dim mProps()
oDesk = createUnoService("com.sun.star.frame.Desktop")
oDoc = oDesk.loadComponentFromUrl("C:\temp\sample.sdw", "_blank", 0, mProps())

Dietrich
Comment 1 Unknown 2001-03-06 15:45:59 UTC
It might be a filter problem.
Comment 2 schulten 2001-03-07 07:00:42 UTC
No, the same document loads nicely if I open it with the GUI.
So it seems not to be a filter problem in the sense that the Writer 5 filter 
can't handle this sdw file.
Besides, it doesn't matter if I try to load a calc document. Therefore, to me 
it seems it might be a filter factory problem or the filter factory receives a 
garbled filter name.

Or what did you mean by "filter problem"?

Dietrich
Comment 3 Mathias_Bauer 2001-04-12 12:11:11 UTC
The problem is that we have indeed a bug in the filter detect service; it does 
not work correctly if no filter name was provided as dispatch argument. If you 
provide a "FilterName" property with any string value ( you could 
use "Dummy" ), the filterdetection should work. We fixed this bug for the 627 
build.
Comment 4 Mathias_Bauer 2003-01-17 13:33:07 UTC
.