Bug 32866 - Manager does not inherite the webapp <distributable/> property
Manager does not inherite the webapp <distributable/> property
Status: RESOLVED FIXED
Product: Tomcat 5
Classification: Unclassified
Component: Catalina
5.0.30
PC All
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2004-12-28 21:44 UTC by Stephane Bailliez
Modified: 2005-03-24 19:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Bailliez 2004-12-28 21:44:21 UTC
There seems to be a slight inconsistency on the <distributable/> 
implementation as it will throw a ISE only if the manager is set to 
distributable="true". The manager will NOT inherit the webapp distributable 
property.

The documentation looks fairly consistent with my interpretation of the 
Servlet 2.4 specification (7.7.2), the Tomcat documentation states about the 
Manager distributable property that:

---
Set to true to ask the session manager to enforce the restrictions described 
in the Servlet Specification on distributable applications (primarily, this 
would mean that all session attributes must implement java.io.Serializable). 
Set to false (the default) to not enforce these restrictions.

NOTE - The value for this property is inherited automatically based on the 
presence or absence of the <distributable> element in the web application 
deployment descriptor (/WEB-INF/web.xml).
---

Looking at the source code, it is clear to me that this is not the case as the 
Manager setDistributable property is only set when parsing the server.xml (or 
context that is)
Comment 1 Yoav Shapira 2005-03-25 04:52:08 UTC
Modified StandardContext#setDistributable to propagate to its Manager, matching
the docs.  Thanks for pointing this out.