[#3355] - Security File principalExpression doesn't work if split across lines

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

When the value of the <principalExpression> begins on a new line it seems to prevent the filter from being applied.

This doesn't seem to work:

<principalExpression>
authentication.getPrincipal().getRoles().any{ it.getRoleName() in ['ROLE_SUPERMART_MANAGER'] }
</principalExpression>

This works fine
<principalExpression>authentication.getPrincipal().getRoles().any{ it.getRoleName() in ['ROLE_SUPERMART_MANAGER'] }
</principalExpression>

v5.5.0
richard.cutts's picture
Joined: Dec 10 2013 - 1:28am
Last seen: 4 years 10 months ago

1 Comment:

#1
  • Assigned:nobody»
Feedback