read to navigation path /a()/b/c” does not work with MockServer
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
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
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
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
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
Hi Gal,
could you at least update the documentation until the fix/enhancement is released?
Regards
Jan
Any progress on this? This has hit us now in the second project....
@DerGuteWolf Not that I know of. I've re-opened the internal incident to get some update.
Hello, This issue was raised as a requirement to Fiori Tech Program and was rejected. It won't be fixed.
Thanks and regards, Licam
Hi @licam, but then at least document this, ie instead of "supported" write "max one step supported" or something similar.
Thanks, Wolfgang
@DerGuteWolf The documentation is now updated: https://github.com/SAP/openui5-docs/commit/7f979c03830dba85157327c11002e610da17fd45#diff-a8dc227b22486e20cc9e489fd789ea005f02e68c147c13234fac9952d6bc2b86