You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2015/08/19 16:46:45 UTC

[jira] [Assigned] (FELIX-4456) openConnection().getContentLengthLong() always returns -1 for bundle URLs on Java7

     [ https://issues.apache.org/jira/browse/FELIX-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reassigned FELIX-4456:
--------------------------------------

    Assignee: Guillaume Nodet  (was: Karl Pauls)

> openConnection().getContentLengthLong() always returns -1 for bundle URLs on Java7
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-4456
>                 URL: https://issues.apache.org/jira/browse/FELIX-4456
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.2.1
>            Reporter: Stuart McCulloch
>            Assignee: Guillaume Nodet
>
> Java7 introduced a new method to URLConnection called getContentLengthLong. Felix's URLHandlersBundleURLConnection only overrides getContentLength, so the default getContentLengthLong implementation is left in place and always returns -1 for 'bundle' URLs when running Felix on Java7.
> The client-side workaround is to fall-back to getContentLength whenever getContentLengthLong returns -1, but it would be great if this could be fixed in a future framework release.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)