Letractively / securityswitch

Automatically exported from code.google.com/p/securityswitch
Other
0 stars 0 forks source link

Not switching back correctly #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to site
2. Go to a page that use SSL
3. Go to a page that does not use SSL

What is the expected output? What do you see instead?
When switching back from a page that that uses SSL https://secure.mydomain.com 
to http://mydomain.com page is going to http://secure.mydomain.com instead of 
http://mydomain.com

What version of the product are you using? On what operating system?
v4.1.4327.9 on IIS7

Please provide any additional information below.
I have all files for security switch installed, everything else works the way 
that it should

Original issue reported on code.google.com by mrsejone...@gmail.com on 16 Jan 2012 at 3:17

GoogleCodeExporter commented 8 years ago
Please, post the securitySwitch configuration section from your web.config 
file. I'll need to take a look to verify settings there. Thanks!

Original comment by vent...@gmail.com on 16 Jan 2012 at 4:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Comment 2 by mrsejone...@gmail.com, Today (6 hours ago)

<configSections>
        <section name="NopConfig" type="NopSolutions.NopCommerce.BusinessLogic.Configuration.NopConfig, Nop.BusinessLogic" requirePermission="false" />
        <section name="urlrewritingnet" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" requirePermission="false" />

        <section name="securitySwitch" type="SecuritySwitch.Configuration.Settings, SecuritySwitch" requirePermission="false" />
</configSections>

    <securitySwitch xmlns="http://SecuritySwitch-v4.xsd" mode="Off"
        baseInsecureUri = "http://mydomain.com" 
        baseSecureUri = "https://secure.mydomain.com" 
        ignoreSystemHandlers = "true">
<!--        
        bypassSecurityWarning= "true"> 
-->     
        <paths>
            <add path="~/Login.aspx" />
            <add path="~/Checkout" />
            <add path="~/account.aspx" />
            <add path="~/Administration" />
            <add path="~/scripts" security="Ignore" />
            <add path="~/images/" security="Ignore" />  
            <add path="~/App_Themes/" security="Ignore" />  
            <add path="~/Administration/images/" security="Ignore"/>            
        </paths>
    </securitySwitch>

I had to comment out the following
bypassSecurityWarning= "true">
because the noe secure items would not load

Thank you

Original comment by mrsejone...@gmail.com on 17 Jan 2012 at 12:33

GoogleCodeExporter commented 8 years ago
<configSections>
        <section name="NopConfig"
type="NopSolutions.NopCommerce.BusinessLogic.Configuration.NopConfig,
Nop.BusinessLogic" requirePermission="false" />
        <section name="urlrewritingnet"
type="UrlRewritingNet.Configuration.UrlRewriteSection,
UrlRewritingNet.UrlRewriter" requirePermission="false" />

        <section name="securitySwitch"
type="SecuritySwitch.Configuration.Settings, SecuritySwitch"
requirePermission="false" />
</configSections>

    <securitySwitch xmlns="http://SecuritySwitch-v4.xsd
<http://securityswitch-v4.xsd/>" mode="Off"
        baseInsecureUri = "http://mydomain.com"
        baseSecureUri = "https://secure.mydomain.com"
        ignoreSystemHandlers = "true">
<!--        
        bypassSecurityWarning= "true">
-->     
        <paths>
            <add path="~/Login.aspx" />
            <add path="~/Checkout" />
            <add path="~/account.aspx" />
            <add path="~/Administration" />
            <add path="~/scripts" security="Ignore" />
            <add path="~/images/" security="Ignore" />  
            <add path="~/App_Themes/" security="Ignore" />  
            <add path="~/Administration/images/" security="Ignore"/>            
        </paths>
    </securitySwitch>

I had to comment out the following
bypassSecurityWarning= "true">
because the noe secure items would not load

Original comment by mrsejone...@gmail.com on 18 Jan 2012 at 3:34

GoogleCodeExporter commented 8 years ago
Fixed it

Original comment by mrsejone...@gmail.com on 20 Jan 2012 at 8:01

GoogleCodeExporter commented 8 years ago
That's great! Was it a configuration issue or something external to the module 
conflicting? Thanks.

Original comment by vent...@gmail.com on 23 Jan 2012 at 1:32

GoogleCodeExporter commented 8 years ago
It was an issue of the code in the site redirecting when it should not have
been.  So while the module was performing properly and redirecting from
https://secure.mysite,com to http://mysite.com, the code in the program was
rewrittting and redirecting to http://secure.mysite.com.  I should have
found that quicker cause I use to use Security Switch V2
Thanks for your help.

Original comment by mrsejone...@gmail.com on 23 Jan 2012 at 8:06

GoogleCodeExporter commented 8 years ago
Well, I'm glad you got it fixed. I'm slowly putting together an FAQ and Common 
Issues pages, so information about fixes, like this, are very helpful. Thanks!

Original comment by vent...@gmail.com on 29 Jan 2012 at 1:54