You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2008/06/20 22:17:45 UTC

[jira] Created: (SYNAPSE-371) Inappropriate return type in RegistryEntry#getType

Inappropriate return type in RegistryEntry#getType
--------------------------------------------------

                 Key: SYNAPSE-371
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-371
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.2
         Environment: N/A
            Reporter: Andreas Veithen


The method RegistryEntry#getType returns the content type of the registry entry. The return type of this method is java.net.URI, which is not an appropriate Java type to represent a content type. Note that in most cases the content type is of the form "xxx/yyy" which is also a valid (relative) URI. However for a content type such as "text/xml; charset=UTF-8" this causes problems: see (http://www.nabble.com/Re%3A-Remote-configuration-via-HTTP-based-registries-p18020345.html). The return type should be changed to javax.mail.ContentType or alternatively java.lang.String.

Note that we need to check the impact on registry implementations hosted outside of the Synapse project (if there are any).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Resolved: (SYNAPSE-371) Inappropriate return type in RegistryEntry#getType

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

indika priyantha kumara resolved SYNAPSE-371.
---------------------------------------------

       Resolution: Fixed
    Fix Version/s: NIGHTLY

Change the method signature so that content type is expected as String.
Add internally validity against content type when setting the content type to a registry entry. Here uses ContentType class for validating content-type string

> Inappropriate return type in RegistryEntry#getType
> --------------------------------------------------
>
>                 Key: SYNAPSE-371
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-371
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: N/A
>            Reporter: Andreas Veithen
>            Assignee: indika priyantha kumara
>             Fix For: NIGHTLY
>
>
> The method RegistryEntry#getType returns the content type of the registry entry. The return type of this method is java.net.URI, which is not an appropriate Java type to represent a content type. Note that in most cases the content type is of the form "xxx/yyy" which is also a valid (relative) URI. However for a content type such as "text/xml; charset=UTF-8" this causes problems: see (http://www.nabble.com/Re%3A-Remote-configuration-via-HTTP-based-registries-p18020345.html). The return type should be changed to javax.mail.ContentType or alternatively java.lang.String.
> Note that we need to check the impact on registry implementations hosted outside of the Synapse project (if there are any).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


[jira] Assigned: (SYNAPSE-371) Inappropriate return type in RegistryEntry#getType

Posted by "indika priyantha kumara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

indika priyantha kumara reassigned SYNAPSE-371:
-----------------------------------------------

    Assignee: indika priyantha kumara

> Inappropriate return type in RegistryEntry#getType
> --------------------------------------------------
>
>                 Key: SYNAPSE-371
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-371
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: N/A
>            Reporter: Andreas Veithen
>            Assignee: indika priyantha kumara
>
> The method RegistryEntry#getType returns the content type of the registry entry. The return type of this method is java.net.URI, which is not an appropriate Java type to represent a content type. Note that in most cases the content type is of the form "xxx/yyy" which is also a valid (relative) URI. However for a content type such as "text/xml; charset=UTF-8" this causes problems: see (http://www.nabble.com/Re%3A-Remote-configuration-via-HTTP-based-registries-p18020345.html). The return type should be changed to javax.mail.ContentType or alternatively java.lang.String.
> Note that we need to check the impact on registry implementations hosted outside of the Synapse project (if there are any).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org