[
https://issues.apache.org/jira/browse/FELIX-5026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Valentin Valchev resolved FELIX-5026.
-------------------------------------
Resolution: Fixed
fixed in svn r1701216
I've actually removed the hex/base64/sha1 support. It was a little weird to
send hashes over event admin. If it is really a password hash, the event admin
is not the a secure way to provide it to some other component(s).
Instead I've added support for 'byte array'. And it handles different formats
of those byte arrays. All those variants are accepted:
"0, 03, 0xfa, #40"
"{10,23,32}"
"[30,33,33]"
"00:00:00:00"
> Web Console Event plugin exception when sending event with property of type
> hex/base64
> --------------------------------------------------------------------------------------
>
> Key: FELIX-5026
> URL: https://issues.apache.org/jira/browse/FELIX-5026
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-event-plugin-1.1.2
> Reporter: Valentin Valchev
> Assignee: Valentin Valchev
>
> base64/hex/sha1 types are basically unsupported by the java code, but the UI
> renders them as supported types:
> {code}
> java.lang.IllegalArgumentException: Unsupported type!
> at
> org.apache.felix.webconsole.plugins.event.internal.PropertiesEditorSupport.convert(PropertiesEditorSupport.java:90)
> at
> org.apache.felix.webconsole.plugins.event.internal.PropertiesEditorSupport.convertProperties(PropertiesEditorSupport.java:51)
> at
> org.apache.felix.webconsole.plugins.event.internal.PluginServlet.newEvent(PluginServlet.java:109)
> at
> org.apache.felix.webconsole.plugins.event.internal.PluginServlet.doPost(PluginServlet.java:121)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.apache.felix.webconsole.internal.WebConsolePluginAdapter.service(WebConsolePluginAdapter.java:216)
> at
> org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:567)
> at
> org.apache.felix.webconsole.internal.servlet.OsgiManager$3.run(OsgiManager.java:465)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:461)
> at
> com.prosyst.mbs.impl.services.http.ServletProperties.service(ServletProperties.java:109)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)