Issues
- CF mapping's for modules don't get created for proxy requestsCOLDBOX-517Resolved issue: COLDBOX-517Luis Majano
- Add frameworksupertype goodies to coldbox.cfc config fileCOLDBOX-456Resolved issue: COLDBOX-456Luis Majano
- abstractFlashScope getKeys() doesn't workCOLDBOX-454Resolved issue: COLDBOX-454Luis Majano
- API docs have broken linksCOLDBOX-453Resolved issue: COLDBOX-453Brad Wood
- Submodule access point not accumulateCOLDBOX-452Resolved issue: COLDBOX-452Luis Majano
- Namespace module interceptors to avoid name conflictsCOLDBOX-442Resolved issue: COLDBOX-442Luis Majano
- onError handler doesn't workCOLDBOX-441Resolved issue: COLDBOX-441Luis Majano
- Module routing was not respecting package resolving within handlersCOLDBOX-435Resolved issue: COLDBOX-435Luis Majano
- Autowire remote proxies, changed to manual instead of automaticCOLDBOX-246Resolved issue: COLDBOX-246Luis Majano
9 of 9
CF mapping's for modules don't get created for proxy requests
Fixed
Description
Gliffy Diagrams
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Luis MajanoLuis MajanoReporter
Daniel SchmidDaniel SchmidComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Luis Majano
Luis MajanoReporter
Daniel Schmid
Daniel SchmidComponents
Fix versions
Affects versions
Priority
Sentry
Sentry
Sentry
Created April 27, 2016 at 8:31 AM
Updated October 6, 2016 at 9:32 PM
Resolved October 6, 2016 at 9:32 PM
Activity
Show:
Brad WoodSeptember 21, 2016 at 10:41 PM
No, i would expect it for any request. Imagine if you ran getInstance( 'myservice@myModule' ) and the logic in that CFC needed the mapping to resolve an extends or implements keyword. Module mappings basically need to always exist regardless of whether an event is being executed.
Luis MajanoSeptember 21, 2016 at 10:35 PM
Would his be for process event only?
Brad WoodSeptember 21, 2016 at 10:32 PMEdited
Yes it is. Basically, the same request setup that happens for a "normal" ColdBox needs to happen for proxy requests. We can run the logic the same way we autowire proxies. Basically, if you're going to use a module in your proxy request, the mappings need to be processed.
Luis MajanoSeptember 21, 2016 at 9:43 PM
is this still an issue
Brad WoodApril 27, 2016 at 1:28 PM
Thanks for the ticket
It seems autowiring of modules over wirebox doesn't work if is called over the proxy. Not in the proxy itself and also not in the event handler if it is called via
Example: an event Handler called by the process method in the proxy
results in: Could not find the ColdFusion component or interface cbstorages.modelsSessionStorage.
Second: autowire in the proxy suufers from the same problem (path not found)
A temporary solution is to manually adding them to `this.mappings` in your `Application.cfc`
if autowire is not need in the proxy adding the code below to the pseudeo-constructor will work for the module paths in the eventhandler
The problem is the super class's pseduo constructor runs before the sub classes so putting it in your pseduo-constructor is still too late for autowiring in the proxy.
Comment in Slack from Brad (25-4-2016):
"The fix for this will be to add it to the base proxy's pseudo constructor before it autowires."