VIJAYASIMHA R NAGA created OLINGO-868:
-----------------------------------------
Summary: MetaDataParser unable to handle Terms with more than one
value for "AppliesTo" Attribute
Key: OLINGO-868
URL: https://issues.apache.org/jira/browse/OLINGO-868
Project: Olingo
Issue Type: Bug
Components: odata4-server
Affects Versions: (Java) V4 4.1.0
Reporter: VIJAYASIMHA R NAGA
Has problems dealing with Terms of the kind mentioned below that has
"AppliesTo" attribute set to more than one type
<Term Name="ResourcePath" Type="Edm.String" AppliesTo="EntitySet Singleton
ActionImport FunctionImport">
</Term>
Suggestions to fix: [In method private CsdlTerm readTerm(StartElement element]
if (attr(element, "AppliesTo") != null) {
//term.setAppliesTo(Collections.singletonList(attr(element,
"AppliesTo")));
term.setAppliesTo(Arrays.asList((attr(element,
"AppliesTo")).split("\\s+")));
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)