felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FELIX-4456) openConnection().getContentLengthLong() always returns -1 for bundle URLs on Java7
Date Mon, 31 Aug 2015 05:15:46 GMT

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

Carsten Ziegeler closed FELIX-4456.
-----------------------------------

> 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
>             Fix For: framework-5.2.0
>
>
> 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)

Mime
View raw message