[
https://issues.apache.org/jira/browse/KNOX-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858312#comment-16858312
]
Todd Lipcon commented on KNOX-1874:
-----------------------------------
Do you feel OK with at least restricting that the files should end in '.xml'
and we skip hidden files? I can add an INFO log message at least indicating
"skipping file ..." for any that it decides to reject if that would make it
easier to debug.
> Ignore irrelevant files in service definition directories
> ---------------------------------------------------------
>
> Key: KNOX-1874
> URL: https://issues.apache.org/jira/browse/KNOX-1874
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Reporter: Todd Lipcon
> Priority: Minor
> Fix For: 1.3.0
>
>
> I was working on editing a service definition file, which resulted in
> creating an emacs lock file '#service.xml#' in the service directory. Knox
> was attempting to load this file, failing to parse it, and ignoring my
> service.
> ServiceDefinitionLoader should only load properly named service definition
> XML files and skip irrelevant items.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)