Copied to clipboard

Flag this post as spam?

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


  • ecsplendid 6 posts 79 karma points
    Mar 07, 2016 @ 12:29
    ecsplendid
    0

    Getting Authorization has been denied for this request for developer section (and logout) after upgrade from 7.2.8->7.4.1

    Hi All

    Don't know if anyone else will stumble on this one but I upgraded from 7.2.8->7.4.1 by essentially copying the /Umbraco /Umbraco_Client over the top. Had a couple of minor issues and as I couldn't see solution explained already I'm documenting it here.

    First I noticed that there were two Document Types nodes in the Settings tree!

     two Document Types nodes in the Settings tree

    One of the trees didn't work when you clicked through on a node.

    This is caused by a spurious

     <add initialize="true" sortOrder="0" alias="documentTypes" application="settings" title="Document Types" iconClosed="icon-folder" iconOpen="icon-folder-open" type="Umbraco.Web.Trees.ContentTypeTreeController, umbraco" />
    

    in trees.config

    Which should now be

      <add initialize="true" sortOrder="7" alias="mediaTypes" application="settings" title="Media Types" iconClosed="icon-folder" iconOpen="icon-folder-open" type="Umbraco.Web.Trees.MediaTypeTreeController, umbraco" />
    

    I guess they changed the DT editor around 7.4.0 to be this new fancy one.

    Next thing is that I found myself locked out of the Developer section. A fiddler revealed it was 401ing:

    GET http://.../umbraco/backoffice/UmbracoTrees/ApplicationTree/GetApplicationTrees?application=developer&tree=&isDialog=false HTTP/1.1
    Host: ...
    Connection: keep-alive
    Accept: application/json, text/plain, */*
    X-XSRF-TOKEN: LpQgeRJR_3S3mHt6iDUegODPZyXDRGav06OFLE6QQ-9x2vQDniqqa29X2zk3CevlJzttxZ0FUi0KOAaI1wYHKSNdUxhPHbVq71BlLfdrb_I1
    User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
    DNT: 1
    Referer: http://.../connect/
    Accept-Encoding: gzip, deflate, sdch
    Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
    Cookie: mode=3; category=News; _ga=GA1.1.2101348138.1456839180; XSRF-TOKEN=LpQgeRJR_3S3mHt6iDUegODPZyXDRGav06OFLE6QQ-9x2vQDniqqa29X2zk3CevlJzttxZ0FUi0KOAaI1wYHKSNdUxhPHbVq71BlLfdrb_I1; XSRF-V=JFuwvslFlklik-Z3dGJ-jqaY9KiapvaM3DrtG0oasYv-zU2qyHlU4IJ3FCGvW331eC9lmwaonSw9unCtCxLZTZv11615wbKyd_GCZfNO5ZU1; UMB_UCONTEXT=EC48578360A954F02BF18367C55AC5244756809A4F70E7D78B908BDD97175CF589D17BCBBA3B316F70109561B82397C9308C04CACA8356AD029E0EC65597AC1CBB5C19B6131134A925D332F79590FEC61A06DF5AC257F810D5370766B916452A5136D6D59CA015FC07C52D0BA93E476D9187DB02740F3B29B30745E634B9527012743F8FE84471B1F8A94D2086F2B53A2417754F15DB54F310A36D48A915155CC97FB97FC3DC1541CC19D3EE2202407FEDC4EAE02D10765471D051131D37EA8AA8B74E0D6B8846AF6E393BAFF972407341559DD1B66F0C847B5779DBED1F7F64B3A3A3D49CCEBF1D8A9D86CF87655948CE784103ACC68F8AFD551E7923549781B3C526CF43722819E7DAB686E381B740E625995C774AD5635FC495222E3853F6C8A973A87D55184DB96B8EF81DFAC85C351D6421467F60D30BF4538D734D6652815C69652C8358B324B1D8B949D35490089F1D9B292CEF28EEAA3D6840E1B6C5F609B93EE1B9EB04600C057947C16EB75F96EFED8C5692125FC3DFE66045E2EE7DF45AA4DAE0D6B6C3E23AC953AE1A07E9B51E22623E2C7014FBB32AD35D581ADC2F1EFB88271382E2DE6CD087B6ADA80C7B66D512ABD40C9008E80B96A7486BA6867DC3AEF5DF5148D754D2A6B7064372A95C17C2A1C028D1DCDAA4B347951EECACBAE6390A1E532D9B38E42CA05E7567FB572144E000B8C8EEAC46C97B4DAF580FA50BC8367DD0903A59319EB9A974129557357B9F3ADDFADF97622B86A339B91326EB6C76131C79AF4BBE5DA786016D33CDE950BC0A92C7249069093A3F53
    
    
    HTTP/1.1 401 Unauthorized
    Cache-Control: no-cache
    Pragma: no-cache
    Content-Type: application/json; charset=utf-8
    Expires: -1
    X-Umb-User-Seconds: 59936.4019882
    X-MiniProfiler-Ids: ["64e4cde5-5d20-4ffb-9d03-ccc5ccb28394","e07c17c0-7518-4486-aad9-f681162c8ddd","f5fcb405-7b12-40ff-9a34-8704f1f29cc7","000abd4a-b451-46c8-8a5a-a88922c79db7","039103c7-5c55-445c-abef-765b6aca6382","d61de0ea-0370-4020-a992-63860ab00457","eb0215df-ef76-4314-b2f3-8bd97344374b","f5c05c98-dc2a-4a7b-ae1d-04d8d29f0d95","e5a512f0-e3a8-47d7-b5a8-4118be50d14f","59372cd4-bbf5-4d57-bcda-5dfe8213a201","014fc741-cadc-4554-b749-7bb0e86c6a6c","8451249b-80d6-469e-be58-8716924a528f","c2816a96-7643-4221-adb2-953d383d598e","f46c1721-7350-45a5-8343-b41dc84184ed","8f1930f3-72bd-4991-b4d5-dd7c9960f73a","d273efec-795d-4b2b-a488-90b0b740b66c","79c0cca0-d3e1-47b4-92cb-de0417fb3af0","4050a5be-de77-458c-95a9-acf7ca6670e0","57cbac6f-38c3-4269-b462-cb68b76035e9","66220e4b-fb47-42a2-b471-c48a3f497834","f36c7e41-82e0-4387-83f6-f7f2e390a308"]
    Access-Control-Allow-Origin: *
    Access-Control-Request-Headers: *
    Date: Mon, 07 Mar 2016 11:53:11 GMT
    Content-Length: 67
    
    )]}',
    {"Message":"Authorization has been denied for this request."}
    

    So similar story, I just copied the new developer section from trees.config on top of my existing one i.e.

     <!--Developer-->
      <add initialize="true" sortOrder="0" alias="dataTypes" application="developer" title="Data Types" iconClosed="icon-folder" iconOpen="icon-folder" type="Umbraco.Web.Trees.DataTypeTreeController, umbraco" />
      <add application="developer" alias="macros" title="Macros" type="umbraco.loadMacros, umbraco" iconClosed="icon-folder" iconOpen="icon-folder" sortOrder="2" />
      <add application="developer" alias="packager" title="Packages" type="umbraco.loadPackager, umbraco" iconClosed="icon-folder" iconOpen="icon-folder" sortOrder="3" />
      <add application="developer" alias="packagerPackages" title="Packager Packages" type="umbraco.loadPackages, umbraco" iconClosed="icon-folder" iconOpen="icon-folder" initialize="false" sortOrder="3" />
      <add application="developer" alias="relationTypes" title="Relation Types" type="umbraco.loadRelationTypes, umbraco" iconClosed="icon-folder" iconOpen="icon-folder" sortOrder="4" />
      <add application="developer" alias="xslt" title="XSLT Files" type="umbraco.loadXslt, umbraco" iconClosed="icon-folder" iconOpen="icon-folder" sortOrder="5" />
      <add application="developer" alias="partialViewMacros" type="Umbraco.Web.Trees.PartialViewMacrosTree, umbraco" silent="false" initialize="true" sortOrder="6" title="Partial View Macro Files" iconClosed="icon-folder" iconOpen="icon-folder" />
    

    I didn't blindly copy over the config files on install because we have customised them!

    Hope this helps someone, cheers

    Tim Scarfe

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Mar 07, 2016 @ 14:45
    Dennis Adolfi
    1

    Had the same issue. The /Config/trees.config file is not updated during the update to 7.4.1.

    Replacing everything above "Custom" in the trees.config solves everything.

    Replace everything before this tag:    
    <!-- Custom -->
    

    Unless offcourse you in your case, have made any customization with the tree tags.

  • Sumesh KP 35 posts 108 karma points c-trib
    Oct 04, 2016 @ 13:14
    Sumesh KP
    0

    I met the same issue when I try to upgrade from 7.3.3 to 7.5.3. After searching many links this one got worked.

    thanks a lot @ecsplendid

Please Sign in or register to post replies

Write your reply to:

Draft