<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:738401113;
mso-list-type:hybrid;
mso-list-template-ids:280164232 -2091455904 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Greetings all –<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I seem to have stumbled across the issue described in this developer’s list exchange [1] in upgrading from IdP 3.1.2 to 3.2.0 on Windows. After upgrading, as soon as the auth/Password flow is triggered, I encounter the following Uncaught
Exception:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 17:05:20,271 ERROR {http-bio-443-exec-1} [,X.X.X.X,F414789D4604C5764A99C6850F04BBE7] net.shibboleth.idp.authn:-2 Uncaught runtime exception<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">org.springframework.webflow.definition.registry.FlowDefinitionConstructionException: An exception occurred constructing the flow 'authn/Password'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> at org.springframework.webflow.engine.builder.DefaultFlowHolder.assembleFlow(DefaultFlowHolder.java:111)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Caused by: org.springframework.webflow.engine.builder.FlowBuilderException: Unable to get the model for this flow<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.doInit(FlowModelFlowBuilder.java:154)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Caused by: org.springframework.webflow.engine.model.builder.FlowModelBuilderException: Unable to find flow 'authn/conditions' to inherit from<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> at org.springframework.webflow.engine.model.builder.xml.XmlFlowModelBuilder.mergeFlows(XmlFlowModelBuilder.java:646)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Caused by: org.springframework.webflow.engine.model.registry.NoSuchFlowModelException: No flow model 'authn/conditions' found<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> at org.springframework.webflow.engine.model.registry.FlowModelRegistryImpl.getLocalFlowModelHolder(FlowModelRegistryImpl.java:94)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Digging into the log files at log-level debug, I see the same behavior that Rod has described in the developer’s list exchange: the authentication condition flows get initialized, but their IDs are set to include the full Windows path to
the files, as opposed to just their names:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:631 Looking for matching resources in directory tree [C:\opt\shibboleth-idp\flows]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows] for files matching pattern
[C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\authn] for files matching pattern
[C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\authn\conditions] for files
matching pattern [C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\authn\conditions\account-locked]
for files matching pattern [C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\authn\conditions\expired-password]
for files matching pattern [C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\authn\conditions\expiring-password]
for files matching pattern [C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\user] for files matching pattern
[C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:693 Searching directory [C:\opt\shibboleth-idp\flows\user\prefs] for files matching
pattern [C:/opt/shibboleth-idp/flows/**/*-flow.xml]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.core.io.support.PathMatchingResourcePatternResolver:424 Resolved location pattern [C:\opt\shibboleth-idp/flows/**/*-flow.xml] to resources
[file [C:\opt\shibboleth-idp\flows\authn\conditions\account-locked\account-locked-flow.xml], file [C:\opt\shibboleth-idp\flows\authn\conditions\conditions-flow.xml], file [C:\opt\shibboleth-idp\flows\authn\conditions\expired-password\expired-password-flow.xml],
file [C:\opt\shibboleth-idp\flows\authn\conditions\expiring-password\expiring-password-flow.xml], file [C:\opt\shibboleth-idp\flows\user\prefs\prefs-flow.xml]]<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\authn\conditions\account-locked\account-locked-flow.xml]'
under id 'C:/opt/shibboleth-idp/flows/authn/conditions/account-locked'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\authn\conditions\conditions-flow.xml]'
under id 'C:/opt/shibboleth-idp/flows/authn/conditions'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\authn\conditions\expired-password\expired-password-flow.xml]'
under id 'C:/opt/shibboleth-idp/flows/authn/conditions/expired-password'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\authn\conditions\expiring-password\expiring-password-flow.xml]'
under id 'C:/opt/shibboleth-idp/flows/authn/conditions/expiring-password'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\user\prefs\prefs-flow.xml]'
under id 'C:/opt/shibboleth-idp/flows/user/prefs'<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">By comparison, prior flows are registered using proper naming:
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">…<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\..\system\flows\cas\login\login-flow.xml]'
under id 'cas/login'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">2015-12-17 16:59:32,785 DEBUG {localhost-startStop-1} [,,] org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:99 Registering flow definition 'file [C:\opt\shibboleth-idp\flows\..\system\flows\cas\proxy\proxy-flow.xml]'
under id 'cas/proxy'<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">…<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Environment-wise, my setup is as follows:<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Windows Server 2012 R2<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Apache Tomcat 8.0.28 (Daemonized)<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Oracle Java 1.8.0_66<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I encounter the same behavior regardless of whether I’ve used the Windows MSI installer or the .zip distributable and install.bat script, either as an upgrade from 3.1.2 or a fresh install. In all cases, I’ve taken the default install location.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Explicitly setting idp.home to “C:/opt/shibboleth-idp” as a system property during Tomcat daemonization solves the problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My gut feeling says this seems like a regression, because the installer with default options didn’t lead to this situation prior to 3.2.0, and documentation indicates that setting idp.home is only necessary if installing to a non-default
location. That said, if I’ve missed something or the installation documentation just needs to be updated, please let me know.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thoughts?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Michael Domingues<o:p></o:p></p>
<p class="MsoNormal">University of Iowa<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1] http://marc.info/?l=shibboleth-dev&m=141267389230106&w=2<o:p></o:p></p>
</div>
</body>
</html>