openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

read to navigation path /a()/b/c” does not work with MockServer

Open Myge91 opened this issue 11 years ago • 10 comments

Hey there,

I have found another bug in the mockserver. Here a short description: read with navigation path /a/b/c does not work with MockServer, MockServer assumes it is not responsible and issues network request

//This read works as expected oModel.read("/AssignmentSet(guid'005056BE-66EB-1EE4-839B-4000F4F3DAE9')/Resource",

//This read works as expected oModel.read("/ResourceSet(guid'00000999-3400-0000-0000-000000000000')/AssignmentSet",

//This read works as expected oModel.read("/AssignmentSet(guid'005056BE-66EB-1EE4-839B-4000F4F3DAE9')", { "urlParameters" : ["$expand=Resource/AssignmentSet"],

//Error oModel.read("/AssignmentSet(guid'005056BE-66EB-1EE4-839B-4000F4F3DAE9')/Resource/AssignmentSet",

Check my examplecode here: http://plnkr.co/edit/TivmRPY2Lwpi49sBJcI5

Regards

Jan

Myge91 avatar Jun 16 '15 13:06 Myge91

Hi Jan, thanks for reporting. I opened internal incident 1570529815 for this. We will come back to you when there is news on this one.

Best Regards, Martin

machwitt avatar Jun 26 '15 14:06 machwitt

Hi Jan, Thanks again for bringing this issue to our attention. We are making sure to incorporate all feedback into the product, in hope of getting to it as soon as possible. We are treating your reported issue as an enhancement request, since it is not a regression from the delivered functionality. Best Regards, Gal

galroter-sap avatar Jun 30 '15 12:06 galroter-sap

Hi Gal,

https://openui5.hana.ondemand.com/#docs/guide/3459c372aaaa4c31ab87bb0e174adcc3.html lists "Navigations" as "Supported" so access via Navigation should work and thus this is IMHO a bug and not an enhancement request

Regards

Jan

Myge91 avatar Jun 30 '15 12:06 Myge91

Hi Jan, MockServer's support for navigations refers to navigation paths "/a()/b/”, i.e. single navigations. It does not take into account navigation chaining. This was never supported since the first version of the MockServer. Nevertheless, I agree with you it should be fixed/enhanced. Regards, Gal

galroter-sap avatar Jun 30 '15 13:06 galroter-sap

Hi Gal,

could you at least update the documentation until the fix/enhancement is released?

Regards

Jan

Myge91 avatar Jun 30 '15 13:06 Myge91

Any progress on this? This has hit us now in the second project....

DerGuteWolf avatar Aug 31 '16 20:08 DerGuteWolf

@DerGuteWolf Not that I know of. I've re-opened the internal incident to get some update.

matz3 avatar Sep 01 '16 09:09 matz3

Hello, This issue was raised as a requirement to Fiori Tech Program and was rejected. It won't be fixed.

Thanks and regards, Licam

licam avatar Mar 03 '22 17:03 licam

Hi @licam, but then at least document this, ie instead of "supported" write "max one step supported" or something similar.

Thanks, Wolfgang

DerGuteWolf avatar Mar 03 '22 17:03 DerGuteWolf

@DerGuteWolf The documentation is now updated: https://github.com/SAP/openui5-docs/commit/7f979c03830dba85157327c11002e610da17fd45#diff-a8dc227b22486e20cc9e489fd789ea005f02e68c147c13234fac9952d6bc2b86

boghyon avatar Mar 18 '22 11:03 boghyon