Configure cooky use for a module through the ofbiz-component.xml
---------------------------------------------------------------- Key: OFBIZ-1831 URL: https://issues.apache.org/jira/browse/OFBIZ-1831 Project: OFBiz Issue Type: New Feature Components: ALL COMPONENTS Affects Versions: SVN trunk Reporter: Michael Brohl Priority: Minor Fix For: SVN trunk Sometimes it could be necessary to disable the use of cookies for a module (e.g. ecommerce) and have the session id be rendered into the url. Currently Tomcat switches to this behaviour if cookies are disabled at the CLIENT. The following patch makes this configurable by a new configuration option in ofbiz-component.xml. How to use: Just add session-cookie-accepted="false" to the webapp tag in the ofbiz-component-xml, e.g. <ofbiz-component name="ecommerce" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> [...] <webapp name="ecommerce" title="eCommerce" server="default-server" location="webapp/ecommerce" mount-point="/ecommerce" app-bar-display="false" session-cookie-accepted="false"/> </ofbiz-component> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Brohl updated OFBIZ-1831: --------------------------------- Summary: Configure cookie use for a module through the ofbiz-component.xml (was: Configure cooky use for a module through the ofbiz-component.xml) > Configure cookie use for a module through the ofbiz-component.xml > ----------------------------------------------------------------- > > Key: OFBIZ-1831 > URL: https://issues.apache.org/jira/browse/OFBIZ-1831 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Michael Brohl > Priority: Minor > Fix For: SVN trunk > > Attachments: framework_cookies.patch > > > Sometimes it could be necessary to disable the use of cookies for a module (e.g. ecommerce) and have the session id be rendered into the url. Currently Tomcat switches to this behaviour if cookies are disabled at the CLIENT. The following patch makes this configurable by a new configuration option in ofbiz-component.xml. > How to use: > Just add > session-cookie-accepted="false" > to the webapp tag in the ofbiz-component-xml, e.g. > <ofbiz-component name="ecommerce" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> > [...] > <webapp name="ecommerce" > title="eCommerce" > server="default-server" > location="webapp/ecommerce" > mount-point="/ecommerce" > app-bar-display="false" > session-cookie-accepted="false"/> > </ofbiz-component> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Brohl updated OFBIZ-1831: --------------------------------- Attachment: framework_cookies.patch A Patch for this issue. The affected files are - framework/base/src/base/org/ofbiz/base/component/ComponentConfig.java - framework/base/dtd/ofbiz-component.xsd - framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java - framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java > Configure cooky use for a module through the ofbiz-component.xml > ---------------------------------------------------------------- > > Key: OFBIZ-1831 > URL: https://issues.apache.org/jira/browse/OFBIZ-1831 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Michael Brohl > Priority: Minor > Fix For: SVN trunk > > Attachments: framework_cookies.patch > > > Sometimes it could be necessary to disable the use of cookies for a module (e.g. ecommerce) and have the session id be rendered into the url. Currently Tomcat switches to this behaviour if cookies are disabled at the CLIENT. The following patch makes this configurable by a new configuration option in ofbiz-component.xml. > How to use: > Just add > session-cookie-accepted="false" > to the webapp tag in the ofbiz-component-xml, e.g. > <ofbiz-component name="ecommerce" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> > [...] > <webapp name="ecommerce" > title="eCommerce" > server="default-server" > location="webapp/ecommerce" > mount-point="/ecommerce" > app-bar-display="false" > session-cookie-accepted="false"/> > </ofbiz-component> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606828#action_12606828 ] Jacques Le Roux commented on OFBIZ-1831: ---------------------------------------- I have reviewed and tested this patch, it's ok with me. If nobody see a problem with this new functionnality I will commit the patch > Configure cookie use for a module through the ofbiz-component.xml > ----------------------------------------------------------------- > > Key: OFBIZ-1831 > URL: https://issues.apache.org/jira/browse/OFBIZ-1831 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Michael Brohl > Priority: Minor > Fix For: SVN trunk > > Attachments: framework_cookies.patch > > > Sometimes it could be necessary to disable the use of cookies for a module (e.g. ecommerce) and have the session id be rendered into the url. Currently Tomcat switches to this behaviour if cookies are disabled at the CLIENT. The following patch makes this configurable by a new configuration option in ofbiz-component.xml. > How to use: > Just add > session-cookie-accepted="false" > to the webapp tag in the ofbiz-component-xml, e.g. > <ofbiz-component name="ecommerce" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> > [...] > <webapp name="ecommerce" > title="eCommerce" > server="default-server" > location="webapp/ecommerce" > mount-point="/ecommerce" > app-bar-display="false" > session-cookie-accepted="false"/> > </ofbiz-component> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-1831. ---------------------------------- Resolution: Fixed Assignee: Jacques Le Roux Thanks Michael, Your patch is in trunk rev. 670268 > Configure cookie use for a module through the ofbiz-component.xml > ----------------------------------------------------------------- > > Key: OFBIZ-1831 > URL: https://issues.apache.org/jira/browse/OFBIZ-1831 > Project: OFBiz > Issue Type: New Feature > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Michael Brohl > Assignee: Jacques Le Roux > Priority: Minor > Fix For: SVN trunk > > Attachments: framework_cookies.patch > > > Sometimes it could be necessary to disable the use of cookies for a module (e.g. ecommerce) and have the session id be rendered into the url. Currently Tomcat switches to this behaviour if cookies are disabled at the CLIENT. The following patch makes this configurable by a new configuration option in ofbiz-component.xml. > How to use: > Just add > session-cookie-accepted="false" > to the webapp tag in the ofbiz-component-xml, e.g. > <ofbiz-component name="ecommerce" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> > [...] > <webapp name="ecommerce" > title="eCommerce" > server="default-server" > location="webapp/ecommerce" > mount-point="/ecommerce" > app-bar-display="false" > session-cookie-accepted="false"/> > </ofbiz-component> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |