You are viewing limited content. For full access, please sign in.

Question

Question

LFDS SSO appends slash to Forms url with query parameters

asked on May 9, 2016 Show version history

I've enabled SSO for forms and we're experiencing a curious problem.

 

We have a custom action in webaccess that passes an entry id to a from in forms.

ie: HOST/Forms/GL?EntryId=123

 

After we enabled sso for forms, when we reach forms after redirection for authentication, an additional slash is added to the URL which leaves it invalid.

Once authenticated, manually removing the slash and hitting enter appears to be working fine though.

 

0 0

Answer

APPROVED ANSWER
replied on May 26, 2016

This has been fixed in Forms 10.0 update 2, you can download the update from https://support.laserfiche.com/kb/kbarticle.aspx?articleid=1013773

0 0

Replies

replied on May 9, 2016

Where exactly in that URL does the extra slash appear?

Can you look in your web.config in Forms and copy and paste the <federationConfiguration> section in here? Feel free to obscure server names and any identifying information if needed.

0 0
replied on May 9, 2016 Show version history

Below I pasted the section you requested. I've tried setting the autoAppendSlash attribute to false, but didn't have much luck with that either. Restarted IIS and Service to make sure change took.

There is also a similar section in the web.config for the LFDS, but it's missing the autoAppendSlash attribute. Wondering if that could be another possible culprit.

 

The slash is appended at the end of the URL, after the query parameters.

 

    <federationConfiguration>
      <cookieHandler requireSsl="false" name="LMAuth" path="/Forms" />
      <wsFederation persistentCookiesOnPassiveRedirects="true" passiveRedirectEnabled="false" realm="http://HOST/Forms/" reply="http://HOST/Forms/" issuer="https://LFDSHOST/LFDSSTS/" homeRealm="urn:laserfiche:lfdsdb:RIO" requireHttps="false" />
      <configuration autoAppendSlash="true" enableReferenceMode="true" />
    </federationConfiguration>
 

0 0
replied on May 9, 2016

Thank you. This is a bug in Forms and I've filed a record for it in our bug tracker. I don't have a date for the hotfix yet.

0 0
replied on May 10, 2016

Thanks, hopefully it's not too much of a nightmare to fix :)

In the mean time, we've worked out a workaround using IIS's URL Rewrite rules.

Basically we set up a rule that is triggered every time, setup a condition on the {QUERY_STRING} that matches the following regex: (.*)/$

Then created a redirect using "{R:0}?{C:1}" and disabled the checkbox that appends the query string.

 

Below is the actual element from the web.config file. Hopefully this will help someone if they encounter this problem.

 

 <rule name="RemoveTrailingSlashRule1" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{QUERY_STRING}" pattern="(.*)/$" />
                    </conditions>
                    <action type="Redirect" url="{R:0}?{C:1}" appendQueryString="false" redirectType="Found" />
                </rule>

 

 

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.