Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 43 posts 72 karma points
    Mar 06, 2015 @ 11:11
    Dan
    0

    401 Authorization denied on 7.2.2

    Hi. Has anyone else run into this problem?

    I upgraded a site from 7.2.1 to 7.2.2 and now when I try go the the Edit Relations, it throws a 401 error and boots you out the cms. Gonna try debug today.

    Regards

    Dan

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 06, 2015 @ 11:28
    Lee Kelleher
    1

    Yo Dan!

    Check for any AJAX requests that throw the error. Then if you have access to the source code, check the API controller for it.

    It is probably inheriting from the wrong base class (something like "UmbracoApiController", but it needs to use "UmbracoAuthorizedApiController" - I might have the names wrong, I'm on mobile at the mo)

    Cheers, Lee

  • Dan 43 posts 72 karma points
    Mar 06, 2015 @ 11:32
    Dan
    0

    Hey Lee the Lee :)

    The offending line of code is the call to this...

    /umbraco/relationseditor/relations/getrelations?parentId=1057&section=content&treeType=

    That's umbraco source not the package source aint it? Package worked great before the upgrade though. Poking through it now.

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Mar 06, 2015 @ 11:37
    Lars-Erik Aabech
    0

    Are you logged in as a member on the same site, in the same browser instance?

  • Dan 43 posts 72 karma points
    Mar 06, 2015 @ 11:40
    Dan
    0

    It's an incognitio chrome window, logging in as an Admin user. Nothing that I haven't done before.

     

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Mar 06, 2015 @ 11:44
    Lars-Erik Aabech
    0

    OK, I'm sure we'll run into the same error on our own sites, and our support dep. will come running.
    That will give me an excuse to do some open source development during office hours again. :)
    Might well be something in the event handler I use. (Triggered from the code you refer to)

    Wouldn't complain if someone sent a PR, though. ;)

  • Dan 43 posts 72 karma points
    Mar 06, 2015 @ 12:01
    Dan
    1

    Okee dokee. Well, I've cloned the source, looking at it now. Hoping the problem just jumps out and says Hi :)

  • Dan 43 posts 72 karma points
    Mar 06, 2015 @ 12:46
  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Mar 06, 2015 @ 12:47
    Lars-Erik Aabech
    0

    Ah, nice. Thanks!

    I'll see about a release next week.

  • Dan 43 posts 72 karma points
    Mar 06, 2015 @ 13:07
    Dan
    0

    I think I've sent a Pull Request. Not sure, not done it before. Haha.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Mar 09, 2015 @ 10:41
    Lee Kelleher
    0

    @Dan - Good that you found & patched it! Weird thing is that blog post says the change happened in v7.0.2 - but I only got errors after upgrading to v7.2.2... not sure what changed in that version - aww well!

Please Sign in or register to post replies

Write your reply to:

Draft