From dev-return-9786-archive-asf-public=cust-asf.ponee.io@olingo.apache.org Fri Aug 3 23:36:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DDD76180674 for ; Fri, 3 Aug 2018 23:36:04 +0200 (CEST) Received: (qmail 37400 invoked by uid 500); 3 Aug 2018 21:36:04 -0000 Mailing-List: contact dev-help@olingo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@olingo.apache.org Delivered-To: mailing list dev@olingo.apache.org Received: (qmail 37388 invoked by uid 99); 3 Aug 2018 21:36:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2018 21:36:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 71D2AC1D0B for ; Fri, 3 Aug 2018 21:36:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id NUlqQwWmXy1b for ; Fri, 3 Aug 2018 21:36:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0454D5F386 for ; Fri, 3 Aug 2018 21:36:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1B0AEE2636 for ; Fri, 3 Aug 2018 21:36:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 50B5A23FA1 for ; Fri, 3 Aug 2018 21:36:00 +0000 (UTC) Date: Fri, 3 Aug 2018 21:36:00 +0000 (UTC) From: "Ramesh Reddy (JIRA)" To: dev@olingo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (OLINGO-1186) OData 4 parsing older service metadata MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OLINGO-1186?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Ramesh Reddy resolved OLINGO-1186. ---------------------------------- Resolution: Fixed Fixed with commit [https://git-wip-us.apache.org/repos/asf?p=3Dolingo-odata= 4.git;a=3Dcommit;h=3Dc7664d4cbd6358a9031a1d7355850e4f24179078] =C2=A0 [~shawkins] The DataServiceVersion is OData V2 construct, not defined in th= e V4. However, the client can now do {code} metadata.getEdmversion() {code} which should give the OData version number that can be checked against. Eit= her case I believe DataServiceVersion in V2 was designed to get the Schema/= Service version which is application specific. > OData 4 parsing older service metadata > -------------------------------------- > > Key: OLINGO-1186 > URL: https://issues.apache.org/jira/browse/OLINGO-1186 > Project: Olingo > Issue Type: Bug > Components: odata4-client > Reporter: Steven Hawkins > Assignee: Ramesh Reddy > Priority: Major > Fix For: (Java) V4 4.5.0 > > > If you point the OData 4 client to older metadata, for example http://ser= vices.odata.org/Northwind/Northwind.svc/$metadata the result will be metada= ta with null values where non-null is expected. > {code} > ClientODataDeserializerImpl deserializer =3D=20 > new ClientODataDeserializerImpl(false, ContentTyp= e.APPLICATION_XML); > XMLMetadata serviceMatadata =3D deserializer.toMetadata(out.getBinaryStre= am()); > CsdlSchema csdlSchema =3D metadata.getSchemas().get(0); > CsdlEntityContainer container =3D csdlSchema.getEntityContainer();=20 > //container is null > {code} > It would be good if XMLMetadata exposed the DataServices version informat= ion, or if Olingo could do some check of them when parsing to validate expe= ctations.=20 > This was also captured as https://issues.jboss.org/browse/TEIID-5071 -- This message was sent by Atlassian JIRA (v7.6.3#76005)