http://ofbiz.116.s1.nabble.com/Asset-Maintenance-Permissions-Problems-tp183482p183488.html
Are you using the result-to-context=true attribute on the action element of your eca def?
> I figured out the problem. The service dispatcher uses the result Map
> from the initial service invoked and it ignores the result Map of any
> ECAs that are invoked. So, any values that an ECA service attempts to
> return are ignored.
>
> -Adrian
>
> Adrian Crum wrote:
>
>> David,
>>
>>
https://issues.apache.org/jira/browse/OFBIZ-1236>>
>> -Adrian
>>
>> David E Jones wrote:
>>
>>>
>>> Adrian Crum wrote:
>>>
>>>> One problem though - when the user doesn't have the required
>>>> permission, the fail message that is displayed is from the original
>>>> service, not the one invoked by the ECA. Any ideas for that?
>>>
>>>
>>>
>>> I haven't looked at how you implemented it, but if the ECA returns a
>>> message then it would be used. Chances are there is some niggly
>>> little detail to look into and play with for this to work. If you're
>>> having a hard time debugging this write up steps to reproduce and I
>>> or someone can take a look at it.
>>>
>>> -David
>>>
>>>
>>