Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Sling Models Impl 1.2.8
-
None
Description
Currently both injectors only work correctly on objects being adaptable to a ValueMap. For ValueMapInjector this is documented but for ResourcePathInjector it is not (http://sling.apache.org/documentation/bundles/models.html#available-injectors), although for the latter it does only matter if the path is given through a resource property and not in a static way.
This should be relaxed that both also work with SlingHttpServletRequest as that always carries the current resource from which the ValueMap can be easily retrieved.
Attachments
Attachments
Issue Links
- is related to
-
SLING-9674 Allow SlingHttpServletRequest based adaptations for ChildResourceInjector
- Open
-
SLING-8279 Having a Resource + ResourceMetadata should be sufficient for roundtrip link mapping.
- Open
- relates to
-
SLING-5721 Extend Sling Models to allow mapping of ValueMap values to custom types
- Open
-
SLING-5590 Move Sling HTTP Servlet Request Adaptor Factory out of Validation Core
- Resolved