You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "jamie campbell (JIRA)" <ji...@apache.org> on 2011/03/01 23:09:36 UTC

[jira] Commented: (FELIX-2868) Icon only works if absolute path specified, but specification allows for relative urls

    [ https://issues.apache.org/jira/browse/FELIX-2868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001145#comment-13001145 ] 

jamie campbell commented on FELIX-2868:
---------------------------------------

actually I think it's worse than that.. /OSGI-INF/metatype/icon.png is an absolute path .. OSGI-INF/metatype/icon.png is a relative path.  Both work, but according to the specification, the relative path should use as its base where the "xml file with the definition" (aka metatype.xml) is.  As such, OSGI-INF/metatype/icon.png should fail to resolve because it should translate to an absolute path of /OSGI-INF/metatype/OSGI-INF/metatype/icon.png , which does not exist.

> Icon only works if absolute path specified, but specification allows for relative urls
> --------------------------------------------------------------------------------------
>
>                 Key: FELIX-2868
>                 URL: https://issues.apache.org/jira/browse/FELIX-2868
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions: metatype-1.0.4
>         Environment: ubuntu 10.04
>            Reporter: jamie campbell
>            Priority: Minor
>
> the icon's "resource" attribute only resolves to an icon if the absolute url path is specified, but the specification says "The base URL is assumed to be the XML file with the definition.  I.e. if the XML is a resource in the JAR file, then this URL can reference another resource in that JAR file using a relative URL." 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira