Bug 1599851
Summary: | [GSS](6.4.z) URL.getContent() returns VirtualFile instead of ImageProducer | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Brad Maxwell <bmaxwell> | ||||
Component: | VFS | Assignee: | jboss-set | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Peter Mackay <pmackay> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.4.20 | CC: | david.lloyd, dcihak, pmackay, rstancel | ||||
Target Milestone: | CR1 | ||||||
Target Release: | EAP 6.4.21 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2019-08-19 12:44:55 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1567790, 1602959, 1606334 | ||||||
Attachments: |
|
Description
Brad Maxwell
2018-07-10 18:17:14 UTC
Workaround: Read the content directly such as with ImageIO.read(url.openStream().getSource() {code} import java.awt.Image; import javax.imageio.ImageIO; import java.io.InputStream; import java.beans.SimpleBeanInfo; URL url = Thread.currentThread().getContextClassLoader().getResource(resourceName); InputStream is = null; try { is = url.openStream(); return ImageIO.read(is).getSource(); } catch(Exception e) { e.printStackTrace(); return null; } finally { try { is.close(); } catch(Exception e) { } } {code} Created attachment 1457891 [details]
JBAS-9399.war
|