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/01/15 17:29:19 UTC

[jira] [Created] (STANBOL-1257) EntityhubDereferenceEngine fails if an empty String is parsed as dereference field

Rupert Westenthaler created STANBOL-1257:
--------------------------------------------

             Summary: EntityhubDereferenceEngine fails if an empty String is parsed as dereference field
                 Key: STANBOL-1257
                 URL: https://issues.apache.org/jira/browse/STANBOL-1257
             Project: Stanbol
          Issue Type: Bug
          Components: Enhancement Engines
    Affects Versions: 0.12.0
            Reporter: Rupert Westenthaler
            Assignee: Rupert Westenthaler


If [""] is parsed as dereference fields the engine creates a FieldMapper instance but will not add a single mapping as "" is not valid. As a result the FieldMapper will reject all fields and therefore causes no data to be dereferenced wile this config should rather dereference all fields of the Entity.

The same Issue can be also achieved by parsing any other invalid field mapping, but an empty configuration is the most likely reason causing this.

To fix this the activation method needs to check if a valid FieldMapping was parsed and if not do not create a FieldMapper instance.

As a Workaround users should parse ["*"] instead of an empty string.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)