zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2k stars 592 forks source link

Filling-in the RequestFailedException fields #2345

Open bernardnormier opened 5 days ago

bernardnormier commented 5 days ago

We should use the same algorithm in all language mappings.

I propose:

            Identity id = rfe.id();
            string facet = rfe.facet();
            string operation = rfe.operation();
            if (id.name.empty())
            {
                id = current.id;
                facet = current.facet;
            }
            if (operation.empty())
            {
                operation = current.operation;
            }

(from #2340)

i.e. the facet is always overwritten when the id(entity) is assigned.