You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2019/09/08 14:21:00 UTC
[jira] [Updated] (JUNEAU-143) Static files mapping doesn't properly
handle override scenarios.
[ https://issues.apache.org/jira/browse/JUNEAU-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Bognar updated JUNEAU-143:
--------------------------------
Description:
The order of lookup of files in RestResource.staticFiles is incorrect in the override scenario.
In the following example, if a file resides in both the parent and child "bar" subpackages, the parent file is returned instead of the child. This is not the correct behavior.
{{@RestResource(staticFiles="foo:bar")}}
{{public class ParentResource {}}}
{{@RestResource(staticFiles="foo:bar")}}
{{public class ChildResource extends ParentResource}}
was:
The order of lookup of files in RestResource.staticFiles is incorrect in the override scenario.
In the following example, if a file resides in both the parent and child "bar" subpackages, the parent file is returned instead of the child. This is not the correct behavior.
{{@RestResource(staticFiles="foo:bar")}}
{{public class ParentResource {}}}
{{}}{{@RestResource(staticFiles="foo:bar")}}
{{public class ChildResource extends ParentResource{}}}
> Static files mapping doesn't properly handle override scenarios.
> ----------------------------------------------------------------
>
> Key: JUNEAU-143
> URL: https://issues.apache.org/jira/browse/JUNEAU-143
> Project: Juneau
> Issue Type: Bug
> Components: Code
> Affects Versions: 8.1.0
> Reporter: James Bognar
> Assignee: James Bognar
> Priority: Major
>
> The order of lookup of files in RestResource.staticFiles is incorrect in the override scenario.
> In the following example, if a file resides in both the parent and child "bar" subpackages, the parent file is returned instead of the child. This is not the correct behavior.
> {{@RestResource(staticFiles="foo:bar")}}
> {{public class ParentResource {}}}
> {{@RestResource(staticFiles="foo:bar")}}
> {{public class ChildResource extends ParentResource}}
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)