Details
-
Type:
Task
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.0-M1
-
Fix Version/s: Tech. Debt
-
Component/s: Core: Configuration, Core: Routing / Filters
-
Labels:
-
User impact:Low
-
Effort points:0.5
-
Similar Issues:
MULE-5723Https transport documents acegi security filterMULE-197Add WS-Security endpoint filterMULE-4916custom-security-filter should allow setting properties and referencing a beanMULE-4322Custom security filter element missingMULE-5836Cannot use message-filter, idempotent-message-filter, idempotent-secure-hash-message-filter and combine-collections-transformer as global elementsMULE-2Components are always lazy loadedMULE-2106Replace xsi:type with Substitution for Security ConfigurationMULE-3383Serving out WSDL over the VM protocol with CXF does not work
MULE-4208 Component authorization/method security not working in Mule 2.2 anymore.MULE-2825Configuration of inbound XFire (and Axis) endpoint with WS-Security is not very logical
Description
The initialise method of AbstractEndpointSecurityFilter is called after the object is created and populated via Spring, but before it receives an endpoint (which is set from within the endpoint, when the filter is injected into the endpoint, which occurs after this object is created and initialised).
This means that when initialise() is called, the endpoint is not known. So the endpoint type cannot be checked. So the initialisation code which requires the endpoint type must be postponed until after the endpoint is set. At the moment we use lazy initialisation - the method lazyInit() is not called until the filter is used (by which point the endpoint should be set). Another alternative would be to initialise when the endpoint is set.
Anyway, Ross asked for this to be noted in an issue here for later consideration.
Issue Links
| Duplicate | |||
|---|---|---|---|
|
|
|
||
Andrew P mentions that there is a "model complete" event of some kind that is available to Mule components. This would probably be the best way to do initialisation like this.