Hi,
After configuring a pre-resource for my webapp with readOnly=false and mapped
to the root, an attempt to PUT failed with 409 "Resource conflict".
To get around this I wrote a servlet that extends DefaultServlet and implements
doPut using pretty much the same code as its parent but with a few extra lines
that try to write to each set of resources in turn (pre, main, post) until
successful. A 409 is only returned if it's not possible to write the data to
any of the configured resources.
My question is: do you think DefaultServlet should already do this i.e. should
I submit my code change for inclusion, or is the current behaviour by-design ?
Regards,
Aidan.
<Context>
<Resources className="org.apache.catalina.webresources.StandardRoot">
<PreResources
className="org.apache.catalina.webresources.DirResourceSet" readOnly="false"
base="/data/tomcat" webAppMount="/" internalPath="/" />
</Resources>
</Context>
----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended
recipient. If you are not the intended recipient , don't use or disclose it in
anyway. Please let the sender know and delete the message immediately.
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
The information in this Internet email is confidential and may be
legally privileged.It is intended solely for the addressee. Access
to this Internet email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful.
When addressed to our clients any opinions or advice contained in this
Internet email are subject to the terms and conditions expressed
in any applicable governing ING terms of business or client engagement letter.
ING Bank N.V. is incorporated with limited liability in the Netherlands and ING
Bank N.V., London branch is registered in England (number BR000341) at 60
London Wall, London EC2M 5TQ. Authorised by the Dutch Central Bank. Visit us at
www.ing.com
------------------------------------------------------------------------------