You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Rupert Westenthaler (JIRA)" <ji...@apache.org> on 2014/05/28 16:36:01 UTC
[jira] [Resolved] (STANBOL-1349) Report BAD_REQUEST for Enhancer
requests using "application/x-www-form-urlencoded"
[ https://issues.apache.org/jira/browse/STANBOL-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rupert Westenthaler resolved STANBOL-1349.
------------------------------------------
Resolution: Fixed
fixed with http://svn.apache.org/r1598020 in 0.12 and http://svn.apache.org/r1598026 in trunk
> Report BAD_REQUEST for Enhancer requests using "application/x-www-form-urlencoded"
> ----------------------------------------------------------------------------------
>
> Key: STANBOL-1349
> URL: https://issues.apache.org/jira/browse/STANBOL-1349
> Project: Stanbol
> Issue Type: Improvement
> Components: Enhancer
> Affects Versions: 0.12.0
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
> Priority: Minor
> Fix For: 1.0.0, 0.12.1
>
>
> Sending POST requests to the Stanbol Enhancer without specifying the Content-Type header will likely result in "application/x-www-form-urlencoded" to be used. As this header is also used by the Stanbol default UI the resulting exception is very wired
> {code}
> java.lang.IllegalArgumentException: The parsed byte array MUST NOT be NULL!
> org.apache.stanbol.enhancer.servicesapi.impl.ByteArraySource.<init>(ByteArraySource.java:98)
> org.apache.stanbol.enhancer.servicesapi.impl.ByteArraySource.<init>(ByteArraySource.java:65)
> org.apache.stanbol.enhancer.servicesapi.impl.StringSource.<init>(StringSource.java:47)
> org.apache.stanbol.enhancer.servicesapi.impl.StringSource.<init>(StringSource.java:37)
> org.apache.stanbol.enhancer.jersey.resource.AbstractEnhancerUiResource.enhanceFromForm(AbstractEnhancerUiResource.java:120)
> {code}
> This issue will catch such requests and return a BAD_REQUEST with a description pointing to the missing "Content-Type" header
--
This message was sent by Atlassian JIRA
(v6.2#6252)