+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Sitefinity 3.7 bug when anonymous access diabled

Sitefinity 3.7 bug when anonymous access diabled

8 posts, 0 answered
  1. Henrik
    Henrik avatar
    20 posts
    Registered:
    10 Jun 2010
    16 Jun 2010
    Link to this post
    Hi,

    Repro:
    1. Create a site
    2. Create a page in the root
    3. Mark it as inaccessible to anonymous in properties
    4. Try to access / while logged in.
    5. You get redirected to the log in view.

    Expected behaviour:
    4. same
    5. You see the first page, don't get redirected

    Trivia:
    * It gives you the path: "/sitefinity/login.aspx?ReturnUrl=%2f" when it redirects you.

    Solution, except NOT to trigger it (by e.g. requesting /Default.aspx instead of /)?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    21 Jun 2010
    Link to this post
    Hello Henrik,

    Thank you for using our services.

    The expected behavior is to get redirected to the login page if you request a page which is not accessible by anonymous users when you are not logged in. I have created a sample website. It has 2 pages - 1 home page accessible by everybody and 1 with anonymous access=deny. You will see that when you are logged in the page shows in navigation and can be accessed. If you are not logged in it will not show the non-anonymous page and if you request it directly through URL you will go to login.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Henrik
    Henrik avatar
    7 posts
    Registered:
    07 May 2010
    21 Jun 2010
    Link to this post
    Hello,

    The point is that I can't access /, but I can access /Default.aspx, when anonymous_access=false and authenticated=true. "/" is equal to "/Default.aspx", right?

    Henrik
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    22 Jun 2010
    Link to this post
    Hello Henrik,

    If you are authenticated this means that your user is no longer anonymous, I hope this makes sense. If you set deny anonymous to the home page and you request the website home you will be redirected to the home page.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Henrik
    Henrik avatar
    20 posts
    Registered:
    10 Jun 2010
    24 Jun 2010
    Link to this post
    > If you are authenticated this means that your user is no longer anonymous, I hope this makes sense.
    It does. I know.

    > If you set deny anonymous to the home page and you request the website home you will be redirected to the home page.

    No that is the problem; I get redirected to "/sitefinity/login.aspx?ReturnUrl=%2f", but should be redirected to "/Default.aspx" or one of the aliases of the home page. You say it yourself, "request / -> redirect /Default.aspx", but in reality "/ -> /sf/login" and "/sf/login -> [authenticate], [authorize] both OK -> /sf/login", but should be "/sf/login -> [authenticate], [authorize] both OK -> /". "/sf/login -> [authenticate] fail -> /sf/login" is true though.
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 Jun 2010
    Link to this post
    Hello Henrik,

    If you request the website without the default.aspx it is normal that the return url will be /. You can try setting this property in the <cms> configuration section in web.config:
    <cms defaultProvider="Sitefinity" pageExtension=".aspx" redirectToHomePage="true" additionalExtensions=".htm, .html" disabled="false" pageEditorUIMode="Overlay">


    Greetings,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Ravishankar Baranwal
    Ravishankar Baranwal avatar
    19 posts
    Registered:
    18 Mar 2009
    30 Aug 2010
    Link to this post
    We are developing a website using Sitefinity. We observed that there are no relation ship in the database used for sitefinity. How to preserve and access data about the indivisual users of the website as per they will logged in to the system. Please give some light on this. Also why the relations are not used in the Sitefinity database.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Aug 2010
    Link to this post
    Hi Ravishankar Baranwal,

    We use data layer - Nolics to persists the data through API methods. For user management you can use all standard method that ASP.NET Membership, MembershipUser, ProfileBase, ProfileCommon  etc  classes expose.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 0 answered