[
https://issues.apache.org/jira/browse/STANBOL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288358#comment-13288358
]
Rupert Westenthaler commented on STANBOL-583:
---------------------------------------------
Hi Alessio,
While testing I found an other server side issue.
When configuring an illegal formatted license key - that is not in the form
'{user-name}:{password}' the CELI server answers with "200 OK" but sends as
contents an plain text error message. This results than in a rather unrelated
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
Exception, because a valid XML is expected.
In my opinion the server should return a HTTP status 4** (Bad Request) in those
cases.
I have written an according UnitTest [1], but for now deactivated the according
test to do not break the build.
NOTE: This could be also solved by validating the license key parameter within
the activate methods of the CELI engines. If you prefer this option I would add
an according utility method to the
"org.apache.stanbol.enhancer.engines.celi.utils.Utils" class.
[1]
http://svn.apache.org/repos/asf/incubator/stanbol/trunk/enhancer/engines/celi/src/test/java/org/apache/stanbol/enhancer/engines/celi/CeliHttpTest.java
> CELI enhancement engine(s) - Contribution to stanbol
> -----------------------------------------------------
>
> Key: STANBOL-583
> URL: https://issues.apache.org/jira/browse/STANBOL-583
> Project: Stanbol
> Issue Type: New Feature
> Components: Enhancer
> Affects Versions: 0.9.0-incubating
> Environment: Enhancement Engines developed as web service clients
> Reporter: Alessio Bosca
> Assignee: Rupert Westenthaler
> Priority: Minor
> Labels: patch
> Attachments: STANBOL-583-celi-engines_20120423_rwesten.patch,
> STANBOL-583-celi-engines_20120511_abosca.patch, celi.zip, celiPatchNER.patch
>
>
> The services included so far in the module as Enhancement Engines are:
> - a Named Entity Recognition service for French
> - a Lemmatizer for Italian, German, Romanian, Russian, Danish (it creates an
> annotation on the document whose content is the lemmatized form of the
> document)
> - a Language Identifier for Italian, French,German,Spanish, Portuguese,
> Polish, Hungarian, Dutch, Swedish,Arabic, Russian,Turkish, Romanian, Greek,
> Norwegian
> - a Document Classification services for Italian, French, German, English,
> Spanish, Portuguese that associates a document to DBPedia classes
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira