[
https://issues.apache.org/jira/browse/SLING-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved SLING-1081.
-------------------------------------
Resolution: Fixed
Thanks for your patch Stefan - I've applied it in revision 1227076
> fsresource: allow to adapt to ValueMap
> --------------------------------------
>
> Key: SLING-1081
> URL: https://issues.apache.org/jira/browse/SLING-1081
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: File System Resource Provider 1.0.2
> Reporter: Stefan Seifert
> Assignee: Carsten Ziegeler
> Fix For: File System Resource Provider 1.0.4
>
> Attachments: 090812_SLING-1081_fsresource_valuemap.patch,
> 111202_SLING-1081_fsresource_valuemap.patch
>
>
> the fsresource provider is used often to map a maven bundle project in the
> sling instance allowing to see changes in file without redeployment of the
> bundle.
> some sling applications accessing such resources always assume they are
> reading from JCR and try to adapt the resource to a ValueMap, which returns
> null for fsresources.
> this is of course a bug in this "some applications", but because fsresource
> is often used in such a scenario it would be helpful to support a simple
> adapting to ValueMap in the FsResource class.
> patch attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira