Bug 1005707 - Don't use default editor for displaying binary assets (images, etc)
Summary: Don't use default editor for displaying binary assets (images, etc)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ER6
: 6.0.0
Assignee: Toni Rikkola
QA Contact: Tomas Livora
URL:
Whiteboard:
: 1008425 (view as bug list)
Depends On:
Blocks: 1009030
TreeView+ depends on / blocked
 
Reported: 2013-09-09 08:55 UTC by Petr Široký
Modified: 2014-08-06 20:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:19:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Široký 2013-09-09 08:55:48 UTC
Description of problem:
Binary assets (e.g. images) are opened in "Default Editor" which is suited only for non-binary assets. Images should be displayed as images or not displayed at all. Similarly with other binary asset types.

Stacktrace in log:
Caused by: org.kie.commons.java.nio.IOException: java.nio.charset.MalformedInputException: Input length = 1
  at org.kie.commons.java.nio.file.Files.readAllLines(Files.java:1092)
  at org.kie.commons.io.impl.AbstractIOService.readAllString(AbstractIOService.java:371)
  at org.kie.commons.io.impl.AbstractIOService.readAllString(AbstractIOService.java:385)
  at org.uberfire.backend.server.VFSServicesServerImpl.readAllString(VFSServicesServerImpl.java:141)
  at org.uberfire.backend.server.VFSServicesServerImpl$Proxy$_$$_WeldClientProxy.readAllString(VFSServicesServerImpl$Proxy$_$$_WeldClientProxy.java)
  at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:114)  	  ... 38 more
Caused by: java.nio.charset.MalformedInputException: Input length = 1
  at java.nio.charset.CoderResult.throwException(CoderResult.java:277)
  at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:338)
  at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
  at java.io.InputStreamReader.read(InputStreamReader.java:184)
  at java.io.BufferedReader.fill(BufferedReader.java:154)
  at java.io.BufferedReader.readLine(BufferedReader.java:317)
  at java.io.BufferedReader.readLine(BufferedReader.java:382)
  at org.kie.commons.java.nio.file.Files.readAllLines(Files.java:1087)
  ... 46 more



Version-Release number of selected component (if applicable):
6.0.0-ER2

Comment 5 Edson Tirelli 2013-10-08 13:27:37 UTC
*** Bug 1008425 has been marked as a duplicate of this bug. ***

Comment 6 Toni Rikkola 2013-10-17 09:07:49 UTC
*** Bug 1019842 has been marked as a duplicate of this bug. ***

Comment 7 Lukáš Petrovický 2013-10-17 09:17:47 UTC
Raising severity as the bug now causes problems in other areas (such as bug 1019842).

Comment 8 Radovan Synek 2013-10-17 11:06:14 UTC
as this issue doesn't block bug 999885, setting severity back to low.

Comment 9 Edson Tirelli 2013-11-18 19:57:54 UTC
Toni, I am raising the priority of this to match that of ticket #1009030.

Comment 10 Tomas Livora 2014-01-14 15:54:35 UTC
Verified on BRMS 6.0.0-ER7


Note You need to log in before you can comment on or make changes to this bug.