From dev-return-9491-archive-asf-public=cust-asf.ponee.io@olingo.apache.org Wed Jan 17 11:00:19 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 39B4118062C for ; Wed, 17 Jan 2018 11:00:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2A60F160C47; Wed, 17 Jan 2018 10:00:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 71130160C1B for ; Wed, 17 Jan 2018 11:00:18 +0100 (CET) Received: (qmail 90325 invoked by uid 500); 17 Jan 2018 10:00:17 -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 90310 invoked by uid 99); 17 Jan 2018 10:00:17 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2018 10:00:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 14D9FD35A5 for ; Wed, 17 Jan 2018 10:00:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Zhrdl1ZTnAIq for ; Wed, 17 Jan 2018 10:00:15 +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 443095F58C for ; Wed, 17 Jan 2018 10:00:15 +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 7CF58E1287 for ; Wed, 17 Jan 2018 10:00:14 +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 3C78B212FE for ; Wed, 17 Jan 2018 10:00:14 +0000 (UTC) Date: Wed, 17 Jan 2018 10:00:14 +0000 (UTC) From: "Paul (JIRA)" To: dev@olingo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OLINGO-1222) Unable to create navigation links in Cars Project 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-1222?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul updated OLINGO-1222: ------------------------- Component/s: (was: odata4-samples) odata2-core > Unable to create navigation links in Cars Project > ------------------------------------------------- > > Key: OLINGO-1222 > URL: https://issues.apache.org/jira/browse/OLINGO-1222 > Project: Olingo > Issue Type: Bug > Components: odata2-core > Affects Versions: V2 2.0.10 > Environment: OSX & Windows > Reporter: Paul > Priority: Major > > When I create the Cars project from the default commands and use the gene= rate data function, the data is generated correctly and all the links such = as from a car to a driver work fine. > =C2=A0 > Opening postman, I then go and add a new car which also works fine. If I = attempt to add a driver to a car then I am getting an "Requested entity cou= ld not be found". > =C2=A0 > I created a Car with id of 14 > URI: > [http://localhost:8080/|http://localhost:8080/CarService.svc/Cars] [MyFor= mula.svc|http://localhost:8080/MyFormula.svc/Cars('14')/$links/Driver] [/Ca= rs|http://localhost:8080/CarService.svc/Cars] > Headers > Content-Type: application/json > Body: > { > "Id":"14", > "Model":"Paul", > "Price":"132", > "ModelYear":2013 > } > =C2=A0 > I now want to link a driver to this car > If I do a post > URI: > [http://localhost:8080/MyFormula.svc/Cars('14')/$links/Driver] > Headers: > Content-Type: application/json > Body: > { > "Id": "23", > "Name":"Jody", > "Lastname":"Schecter", > "Nickname":"SAMan" > } > =C2=A0 > Then it does not work. and raises the error "Requested entity could not b= e found". > =C2=A0 > If I try to manually link them via a put on the car this also fails. > =C2=A0 > I first create the driver above manually by posting to the Drivers collec= tion. > I do a PUT > URI: > http://localhost:8080/MyFormula.svc/Cars('14')/$links/Driver > Headers: > content-type: application/xml > Body: > ?xml version=3D"1.0" encoding=3D"utf-8" standalone=3D"yes"?> > > http://localhost:8080/MyFormula.svc/Drivers(23L) > > =C2=A0 > this also fails > =C2=A0 > Any ideas why this would not work? The links seem fine for those created = by the script in the source code but external creation does not allow links= to be set up -- This message was sent by Atlassian JIRA (v7.6.3#76005)