{"id":39647,"date":"2025-07-23T20:25:00","date_gmt":"2025-07-23T18:25:00","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=39647"},"modified":"2025-07-23T20:25:00","modified_gmt":"2025-07-23T18:25:00","slug":"dctm-invalid-missing-xsrf-token-on-d2","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/","title":{"rendered":"Dctm &#8211; Invalid\/Missing XSRF token on D2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">During an upgrade project to Documentum 23.4, I faced yet again another interesting behavior from D2. The Documentum Server upgrade happened properly for all components like the Connection Broker, Repositories, D2, etc\u2026 The OTDS was also setup and available\/working properly without too much trouble. However, the deployment of the D2 war file was a bit of another story.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As usual, we try to make it so that Documentum and all its components are setup as securely as possible. From a WebServer point of view, that include a bunch of Best Practices that we add into our deployments \/ custom images (when using containers), and D2 isn&#8217;t without rest. One of such things is for example to setup the Tomcat and D2 application to work only with cookies that have the &#8220;<strong>secure<\/strong>&#8221; and &#8220;<strong>httpOnly<\/strong>&#8221; flags. That is done in a few locations, but in recent versions of D2, there is additional parameters to help control this kind of behavior inside the <strong>ESAPI.properties<\/strong> file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Note:<\/em><\/strong> there are often confusions about the &#8220;<strong>httpOnly<\/strong>&#8221; flag for cookies, so I think a quick reminder wouldn&#8217;t hurt. The &#8220;<strong>secure<\/strong>&#8221; flag means that the cookie can only be sent through HTTPS (except when using localhost), so it&#8217;s much harder to get access to it. The &#8220;<strong>httpOnly<\/strong>&#8221; one, contrary to his name, doesn&#8217;t mean that the cookie is only for HTTP communications, but it means that it cannot be accessed by client&#8217;s scripts like JavaScript. Therefore, sensitive cookies should have both flags, so that they go through the network securely and even when it arrives on the target client&#8217;s browser, its access is protected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, as a good practice, I went ahead and configured D2 as secure as I could, even before a 1st deployment, and that included these 4 parameters:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; highlight: [3,4,5,7]; notranslate\">\n&#x5B;tomcat@d2-0 war_prep]$ grep -B1 -E &quot;ForceHttpOnly|ForceSecure&quot; WEB-INF\/classes\/ESAPI.properties\n# Force flags on cookies, if you use HttpUtilities to set cookies\nHttpUtilities.ForceHttpOnlySession=true\nHttpUtilities.ForceSecureSession=true\nHttpUtilities.ForceHttpOnlyCookies=true\n# Whlie doing a cross site access through https make the below flag to true \nHttpUtilities.ForceSecureCookies=true\n&#x5B;tomcat@d2-0 war_prep]$\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Once my D2 WAR file was ready and configured, I tried to deploy it on Tomcat. No errors\/issues during the deployment\/startup of D2. However, accessing the D2 UI ended up with a pretty and infinite loading logo of D2. You probably have all seen that happen at some point:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6b101526845e9&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b101526845e9\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"803\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2-1024x803.png\" alt=\"\" class=\"wp-image-39648\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2-1024x803.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2-300x235.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2-768x602.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2.png 1437w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nothing on the D2 logs (generated through the <strong>logback.xml<\/strong> or <strong>log4j2.properties<\/strong>), but on the Tomcat logs, I could see the stack related to that issue when I accessed the URL a few minutes after Tomcat was fully up&amp;running:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; highlight: [4,5,6]; notranslate\">\n2025-07-08 14:25:56,379 UTC INFO &#x5B;main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive &#x5B;$CATALINA_HOME\/webapps\/D2\/D2.war] has finished in &#x5B;57,704] ms\n2025-07-08 14:25:56,382 UTC INFO &#x5B;main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler &#x5B;&quot;https-jsse-nio-8080&quot;]\n2025-07-08 14:25:56,400 UTC INFO &#x5B;main] org.apache.catalina.startup.Catalina.start Server startup in &#x5B;57846] milliseconds\n2025-07-08 14:29:36,966 UTC SEVERE &#x5B;https-jsse-nio-8080-exec-42] org.apache.catalina.core.ApplicationContext.log Key&#x5B;type=com.emc.x3.server.services.labels.RpcLabelServiceImpl, annotation=&#x5B;none]]: An RpcTokenException was thrown while processing this call.\n\tcom.google.gwt.user.client.rpc.RpcTokenException: Invalid RPC token (Missing XSRF token: not on request, client IP=xxx.xxx.xxx.xxx)\n\t\tat com.emc.x3.server.D2XsrfProtectedServiceServlet.validateXsrfToken(D2XsrfProtectedServiceServlet.java:33)\n\t\tat com.google.gwt.user.server.rpc.AbstractXsrfProtectedServiceServlet.onAfterRequestDeserialized(AbstractXsrfProtectedServiceServlet.java:66)\n\t\tat com.emc.x3.server.GuiceRemoteServiceServlet.processCall(GuiceRemoteServiceServlet.java:120)\n\t\tat com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:373)\n\t\tat com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)\n\t\tat jakarta.servlet.http.HttpServlet.service(HttpServlet.java:590)\n\t\tat jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)\n\t\tat com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)\n\t\tat com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)\n\t\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)\n\t\tat com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)\n\t\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)\n\t\tat org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)\n\t\tat org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n\t\tat com.emc.x3.portal.server.filters.authc.X3OTDSAuthenticationFilter.executeChain(X3OTDSAuthenticationFilter.java:1106)\n\t\tat org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n\t\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)\n\t\tat org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n\t\tat org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\n\t\tat org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\n\t\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)\n\t\tat org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)\n\t\tat org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:458)\n\t\tat org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:373)\n\t\tat org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\n\t\tat org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\n\t\tat org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)\n\t\tat org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:370)\n\t\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)\n\t\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)\n\t\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)\n\t\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)\n\t\tat com.emc.x3.portal.server.filters.X3SessionTimeoutFilter.doFilter(X3SessionTimeoutFilter.java:52)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)\n\t\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)\n\t\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)\n\t\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)\n\t\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)\n\t\tat org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:185)\n\t\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)\n\t\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:663)\n\t\tat org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:731)\n\t\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)\n\t\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)\n\t\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:397)\n\t\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)\n\t\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)\n\t\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)\n\t\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n\t\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)\n\t\tat java.base\/java.lang.Thread.run(Thread.java:840)\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">I checked that the XSRF token was indeed generated, and it appeared to be present in the request, at least as shown in the Browser&#8217;s Network traces (Developer Tools). It was being generated and forwarded by the browser with both the &#8220;<strong>secure<\/strong>&#8221; and &#8220;<strong>httpOnly<\/strong>&#8221; flags. So, what was the issue then? It took me a bit of time, but I could pinpoint the issue to the <strong>ESAPI.properties<\/strong> file and more specifically to the 4 properties I mentioned above, that control the flags of both cookies and sessions. To be exact, I expected the &#8220;<strong>httpOnly<\/strong>&#8221; flag for the cookies to be the issue, since it would hide the <strong>XSRF_TOKEN<\/strong> from JavaScript on the client-side. Keeping the content of the WAR file exploded folder the same, I tried to switch this 1 parameter back to false, which is the default value:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; highlight: [7,17]; notranslate\">\n&#x5B;tomcat@d2-0 ~]$ esapi_file=&quot;$CATALINA_HOME\/webapps\/D2\/WEB-INF\/classes\/ESAPI.properties&quot;\n&#x5B;tomcat@d2-0 ~]$\n&#x5B;tomcat@d2-0 ~]$ grep -B1 -E &quot;ForceHttpOnly|ForceSecure&quot; ${esapi_file}\n# Force flags on cookies, if you use HttpUtilities to set cookies\nHttpUtilities.ForceHttpOnlySession=true\nHttpUtilities.ForceSecureSession=true\nHttpUtilities.ForceHttpOnlyCookies=true\n# Whlie doing a cross site access through https make the below flag to true\nHttpUtilities.ForceSecureCookies=true\n&#x5B;tomcat@d2-0 ~]$\n&#x5B;tomcat@d2-0 ~]$ sed -i &#039;s,\\(HttpUtilities.ForceHttpOnlyCookies\\)=true,\\1=false,&#039; ${esapi_file}\n&#x5B;tomcat@d2-0 ~]$\n&#x5B;tomcat@d2-0 ~]$ grep -B1 -E &quot;ForceHttpOnly|ForceSecure&quot; ${esapi_file}\n# Force flags on cookies, if you use HttpUtilities to set cookies\nHttpUtilities.ForceHttpOnlySession=true\nHttpUtilities.ForceSecureSession=true\nHttpUtilities.ForceHttpOnlyCookies=false\n# Whlie doing a cross site access through https make the below flag to true\nHttpUtilities.ForceSecureCookies=true\n&#x5B;tomcat@d2-0 ~]$\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">After a restart of Tomcat, the issue was completely gone and the login to D2 through the OTDS was working successfully\u2026 Since I could deploy D2-REST, D2-Smartview and D2-Config with all 4 <strong>ESAPI.properties<\/strong> parameter set to &#8220;<strong>true<\/strong>&#8220;, I asked OT if it was expected that only D2 has a problem with &#8220;<strong>HttpUtilities.ForceHttpOnlyCookies=true<\/strong>&#8220;. After a few days of exchange, I got the feedback that it&#8217;s not documented but it&#8217;s apparently required for D2 to NOT have the &#8220;<strong>httpOnly<\/strong>&#8221; flag because of the <strong>XSRF_TOKEN<\/strong>. They will see to create a KB for that topic (update: it was created and it&#8217;s available here: <a href=\"https:\/\/support.opentext.com\/csm?id=kb_article_view&amp;sysparm_article=KB0845279\" target=\"_blank\" rel=\"noreferrer noopener\">KB0845279<\/a>). If you really need to have both flags set, then you will not have any other choice than switching to the new UI, D2-Smartview.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During an upgrade project to Documentum 23.4, I faced yet again another interesting behavior from D2. The Documentum Server upgrade happened properly for all components like the Connection Broker, Repositories, D2, etc\u2026 The OTDS was also setup and available\/working properly without too much trouble. However, the deployment of the D2 war file was a bit&hellip;&nbsp;<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4134,4135,4179],"tags":[443,2321,771],"class_list":["post-39647","post","type-post","status-publish","format-standard","category-application-server","category-digitalization","category-documentum","tag-d2","tag-secure","tag-tomcat"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Dctm - Invalid\/Missing XSRF token on D2 - dbi services Blog<\/title>\n<meta name=\"description\" content=\"D2 loads indefinitely when the cookies have the httpOnly flag set, which triggers a Missing XSRF token error on D2.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dctm - Invalid\/Missing XSRF token on D2\" \/>\n<meta property=\"og:description\" content=\"D2 loads indefinitely when the cookies have the httpOnly flag set, which triggers a Missing XSRF token error on D2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-23T18:25:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1437\" \/>\n\t<meta property=\"og:image:height\" content=\"1127\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Morgan Patou\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MorganPatou\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Morgan Patou\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/\"},\"author\":{\"name\":\"Morgan Patou\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/80b23b8d61648c45dd30be73b6b6979d\"},\"headline\":\"Dctm &#8211; Invalid\\\/Missing XSRF token on D2\",\"datePublished\":\"2025-07-23T18:25:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/\"},\"wordCount\":675,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/D2-1024x803.png\",\"keywords\":[\"D2\",\"secure\",\"Tomcat\"],\"articleSection\":[\"Application Server\",\"Digitalization\",\"Documentum\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/\",\"name\":\"Dctm - Invalid\\\/Missing XSRF token on D2 - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/D2-1024x803.png\",\"datePublished\":\"2025-07-23T18:25:00+00:00\",\"description\":\"D2 loads indefinitely when the cookies have the httpOnly flag set, which triggers a Missing XSRF token error on D2.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/D2.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/D2.png\",\"width\":1437,\"height\":1127},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/dctm-invalid-missing-xsrf-token-on-d2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dctm &#8211; Invalid\\\/Missing XSRF token on D2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/80b23b8d61648c45dd30be73b6b6979d\",\"name\":\"Morgan Patou\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/MOP_web-min-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/MOP_web-min-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/MOP_web-min-scaled.jpg\",\"caption\":\"Morgan Patou\"},\"description\":\"Morgan Patou has over 15 years of experience in Digitalization and Enterprise Content Management (ECM). He specializes in designing, implementing, and extending ECM solutions such as Alfresco, Documentum, and M-Files, with expertise in business requirements analysis, ECM architecture, and highly available infrastructures for mission-critical environments. His technical background also covers middleware technologies, including Apache, OpenLDAP, Kerberos, and WebLogic. As Technology Leader Digitalization at dbi services, he oversees knowledge management, technology direction, and skills development within the practice. He holds an Engineering Degree in Computer Science from ENSISA (Mulhouse, France) and certifications in Alfresco Content Services, OpenText Documentum, and M-Files. His experience spans the public sector, IT, financial services and banking, and the pharmaceutical industry.\",\"sameAs\":[\"https:\\\/\\\/catalog.m-files.com\\\/shop\\\/business-dashboard\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/morgan-patou\\\/\",\"https:\\\/\\\/x.com\\\/MorganPatou\"],\"honorificPrefix\":\"Mr\",\"gender\":\"male\",\"award\":[\"Alfresco Content Services Certified Administrator (ACSCA)\",\"Alfresco Content Services Certified Engineer (ACSCE)\",\"OpenText Documentum Certified Administrator\",\"Certified M-Files Developer\"],\"knowsAbout\":[\"Alfresco\",\"Documentum\",\"M-Files\"],\"knowsLanguage\":[\"English\",\"French\"],\"jobTitle\":\"Technology Leader Digitalization & Principal Consultant\",\"worksFor\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/morgan-patou\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Dctm - Invalid\/Missing XSRF token on D2 - dbi services Blog","description":"D2 loads indefinitely when the cookies have the httpOnly flag set, which triggers a Missing XSRF token error on D2.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/","og_locale":"en_US","og_type":"article","og_title":"Dctm - Invalid\/Missing XSRF token on D2","og_description":"D2 loads indefinitely when the cookies have the httpOnly flag set, which triggers a Missing XSRF token error on D2.","og_url":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2025-07-23T18:25:00+00:00","og_image":[{"width":1437,"height":1127,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2.png","type":"image\/png"}],"author":"Morgan Patou","twitter_card":"summary_large_image","twitter_creator":"@MorganPatou","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Morgan Patou","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/"},"author":{"name":"Morgan Patou","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/80b23b8d61648c45dd30be73b6b6979d"},"headline":"Dctm &#8211; Invalid\/Missing XSRF token on D2","datePublished":"2025-07-23T18:25:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/"},"wordCount":675,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2-1024x803.png","keywords":["D2","secure","Tomcat"],"articleSection":["Application Server","Digitalization","Documentum"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/","url":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/","name":"Dctm - Invalid\/Missing XSRF token on D2 - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2-1024x803.png","datePublished":"2025-07-23T18:25:00+00:00","description":"D2 loads indefinitely when the cookies have the httpOnly flag set, which triggers a Missing XSRF token error on D2.","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/07\/D2.png","width":1437,"height":1127},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/dctm-invalid-missing-xsrf-token-on-d2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Dctm &#8211; Invalid\/Missing XSRF token on D2"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/80b23b8d61648c45dd30be73b6b6979d","name":"Morgan Patou","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/MOP_web-min-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/MOP_web-min-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/08\/MOP_web-min-scaled.jpg","caption":"Morgan Patou"},"description":"Morgan Patou has over 15 years of experience in Digitalization and Enterprise Content Management (ECM). He specializes in designing, implementing, and extending ECM solutions such as Alfresco, Documentum, and M-Files, with expertise in business requirements analysis, ECM architecture, and highly available infrastructures for mission-critical environments. His technical background also covers middleware technologies, including Apache, OpenLDAP, Kerberos, and WebLogic. As Technology Leader Digitalization at dbi services, he oversees knowledge management, technology direction, and skills development within the practice. He holds an Engineering Degree in Computer Science from ENSISA (Mulhouse, France) and certifications in Alfresco Content Services, OpenText Documentum, and M-Files. His experience spans the public sector, IT, financial services and banking, and the pharmaceutical industry.","sameAs":["https:\/\/catalog.m-files.com\/shop\/business-dashboard\/","https:\/\/www.linkedin.com\/in\/morgan-patou\/","https:\/\/x.com\/MorganPatou"],"honorificPrefix":"Mr","gender":"male","award":["Alfresco Content Services Certified Administrator (ACSCA)","Alfresco Content Services Certified Engineer (ACSCE)","OpenText Documentum Certified Administrator","Certified M-Files Developer"],"knowsAbout":["Alfresco","Documentum","M-Files"],"knowsLanguage":["English","French"],"jobTitle":"Technology Leader Digitalization & Principal Consultant","worksFor":"dbi services","url":"https:\/\/www.dbi-services.com\/blog\/author\/morgan-patou\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/39647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=39647"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/39647\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=39647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=39647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=39647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}