On 1 Apr 2011, at 13:20, Paul Sharples wrote:

> On 01/04/2011 13:16, Scott Wilson (JIRA) wrote:
>>     [ 
>> https://issues.apache.org/jira/browse/WOOKIE-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014533#comment-13014533
>>  ]
>> 
>> Scott Wilson commented on WOOKIE-192:
>> -------------------------------------
>> 
>> OK, I did some more digging...
>> 
>> Basically it seems like turning off directory browsing isn't standardised 
>> across servlet containers.
>> 
>> So to prevent listing a directory, it seems the easiest thing to do is 
>> create an index.html file in it!
> 
> not impossible, but a pain.

Indeed, I think I'll do it programmatically within the export factory.

> 
>> 
>>> web.xml violates schema contraints
>>> ----------------------------------
>>> 
>>>                 Key: WOOKIE-192
>>>                 URL: https://issues.apache.org/jira/browse/WOOKIE-192
>>>             Project: Wookie
>>>          Issue Type: Bug
>>>          Components: Server
>>>    Affects Versions: 0.9.1
>>>         Environment: ALL - but tested on Windows 7 x64 sp1. Eclipse Helios 
>>> Build id: 20110218-0911
>>>            Reporter: Paul Sharples
>>>            Priority: Trivial
>>>             Fix For: 0.9.1
>>> 
>>> 
>>> The xml parser in Eclipse flags a problem with a definition in web.xml
>>> Description: cvc-complex-type.2.4.d: Invalid content was found starting 
>>> with element 'param-name'. No child element is expected at this point.
>>> Resource: web.xml           
>>> Path: /Apache Wookie/WebContent/WEB-INF     
>>> Location: line 141  
>>> Type: XML Problem
>>> In the definition...
>>> <servlet-mapping>
>>>             <servlet-name>default</servlet-name>
>>>             <url-pattern>/export/*</url-pattern>
>>>             <param-name>dirAllowed</param-name>
>>>             <param-value>false</param-value>
>>> </servlet-mapping>
>>> ...possibly the two params below are in the wrong place and belong as a 
>>> child of the<servlet><init-param>  tag?  Might be hard to alter as the 
>>> proper place they might go are in the the parent containers web.xml (i.e. 
>>> default servlet is declared in the parent web.xml)
>>>             <param-name>dirAllowed</param-name>
>>>             <param-value>false</param-value>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 

Reply via email to