[FIXED] [#769] [3.2.0] Require Https

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [FIXED] [#769] [3.2.0] Require Https

    Index 1
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager RenderScripts="CDN" RenderStyles="CDN" runat="server" />
        <h1>Index 1</h1>
        <ext:Button Text="Redirect to Index 2" DirectClickUrl="~/Example/RedirectToIndex2" runat="server" />
    </body>
    </html>
    Index 2
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager RenderScripts="CDN" RenderStyles="CDN" runat="server" />
        <h1>Index 2</h1>
        <ext:Button Text="Redirect to Index 1" DirectClickUrl="~/Example/RedirectToIndex1" runat="server" />
    </body>
    </html>
    Scenario 1 - Index 1 requires HTTPS

    On Index1, all Ext.NET CDN where loaded using https protocol, what is ok.

    Press Redirect to Index 2

    On Index2, all Ext.NET CDN where loaded using https protocol, what, in my opinion, is wrong.

    namespace SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            [RequireHttps]
            public ActionResult Index1()
            {
                return View();
            }
    
            public ActionResult Index2()
            {
                return View();
            }
    
            public ActionResult RedirectToIndex1()
            {
                return this.RedirectToAction("Index1", "Example");
            }
    
            public ActionResult RedirectToIndex2()
            {
                return this.RedirectToAction("Index2", "Example");
            }
        }
    }
    Scenario 2 - Index 2 requires HTTPS

    On Index1, all Ext.NET CDN where loaded using http protocol, what is ok.

    Press Redirect to Index 2

    Exception is thrown due to CDN resources url protocol.

    namespace SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            public ActionResult Index1()
            {
                return View();
            }
    
            [RequireHttps]
            public ActionResult Index2()
            {
                return View();
            }
    
            public ActionResult RedirectToIndex1()
            {
                return this.RedirectToAction("Index1", "Example");
            }
    
            public ActionResult RedirectToIndex2()
            {
                return this.RedirectToAction("Index2", "Example");
            }
        }
    }
    Thanks in advance.
    Last edited by Daniil; Mar 26, 2015 at 10:19 AM. Reason: [FIXED] [#769] [3.2.0]

Posting Permissions