Issue 27622 - API: TypeDetection could not handle file-URL
Summary: API: TypeDetection could not handle file-URL
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 17:14 UTC by chne
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description chne 2004-04-08 17:14:49 UTC
While a file-URL like "file:/tausch/cn/test.java" could be loaded via
loadComponentFromURL this should be be possible in TypeDetection also:

Sub Main

	dim args(1) as new com.sun.star.beans.PropertyValue
	
	args(0).Name  = "URL"
	args(0).Value = "file:/tausch/cn/test.java"
	
	td = createUnoService("com.sun.star.document.TypeDetection")
	t  = td.queryTypeByDescriptor(args(), true)
	
	_s = ""
	for i=0 to ubound(args()) step 1
		_s = _s+args(i).Name+chr(13)
	next i
	msgbox _s

End Sub
Comment 1 andreas.schluens 2004-04-13 07:24:20 UTC
AS->CN: Sorry - but this is not a valid file URL. Because it contains only 1x"/"
instead of min. 2x ... mostly 3x ...  => "file:///tausch/cn/test.java"
Further I cant reproduce this behaviour.
Comment 2 andreas.schluens 2004-04-13 07:24:38 UTC
.
Comment 3 chne 2004-06-10 17:22:56 UTC
cn->as: but in SO7pp2 I could detect the file
Comment 4 chne 2004-06-10 17:23:45 UTC
.
Comment 5 chne 2004-06-10 17:24:14 UTC
.
Comment 6 andreas.schluens 2004-06-14 13:05:05 UTC
AS->CN: As discussed ... that isnt a valid file-URL. Further it seams to be
working for a SO 7 pp2 "by luck" only. Our current version handle such invalid
file-URLs different ... but in the right way. Please close this bug.
Comment 7 chne 2004-10-11 09:56:09 UTC
.
Comment 8 chne 2004-10-11 09:58:43 UTC
issue is invalid
Comment 9 chne 2004-10-11 10:00:09 UTC
clse