Re: Mapping with parent executes the wrong URLAction in 3.3.1-SNAPSHOT

Splash Forums PrettyFaces Users Mapping with parent executes the wrong URLAction in 3.3.1-SNAPSHOT Re: Mapping with parent executes the wrong URLAction in 3.3.1-SNAPSHOT

#21197

Hey Frank,

sorry for the delayed response. Much work for me to do at the moment so I don’t have much time to check the forum. :-/

We recently enhanced the parenting code in 3.3.1-SNAPSHOT. Up to 3.3.0 a child mapping inherited only the pattern and the path validators from its parent. Now we have enhanced the code so that URL actions and query parameters are also inherited! I think this step is reasonable because this is what people would expect from the parenting process.

Thus it is comprehensible that the login method gets executed in your example. Does the verify method also get executed? That is what I would expect.

I’m sorry that this change breaks your code. You can quickly fix this issue by removing the parentId attribute from your second mapping and just manually prefix the pattern with the one from the first mapping.

Would that work with your code?

Christian