Copied to clipboard

Flag this post as spam?

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


  • keilo 563 posts 1018 karma points
    Nov 03, 2015 @ 07:28
    keilo
    0

    Redirects not working after upgrade from 2.x to 3.9

    Using 7.1.8, upgraded the package from 2.x (working fine but getting way too many db hits) to 3.9 with no upgrades to the umbraco.

    The redirects like /pageabc to /someotherpage or /page123 to http://somewebsite/page123

    stopped working.

    Tried enabling debug mode, i observed following

    2015-11-03 14:55:57,607 [47] DEBUG umbraco.content - [Thread 33] Content initialized (was already in context)
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] FindDomain: Uri="http://local.domain.com/download-ACMEbrochure"
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] FindDomain: Matches no domain
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] FindDomain: Culture="en-US"
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] FindPublishedContentAndTemplate: Path="/download-ACMEbrochure"
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] FindPublishedContent: Begin finders
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - [Thread 33] Test route "/download-ACMEbrochure"
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrl - [Thread 33] No match.
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.ContentFinderByIdPath - [Thread 33] Not a node id
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Running for legacy url='download-ACMEbrochure'.
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Handler 'umbraco.SearchForAlias'.
    2015-11-03 14:55:57,607 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Replace handler 'umbraco.SearchForAlias' by new finder 'Umbraco.Web.Routing.ContentFinderByUrlAlias'.
    2015-11-03 14:55:57,645 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Handler 'umbraco.SearchForTemplate'.
    2015-11-03 14:55:57,645 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Replace handler 'umbraco.SearchForTemplate' by new finder 'Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate'.
    2015-11-03 14:55:57,650 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNiceUrlAndTemplate - [Thread 33] Not a valid template: "download-ACMEbrochure"
    2015-11-03 14:55:57,650 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Handler 'umbraco.SearchForProfile'.
    2015-11-03 14:55:57,650 [47] DEBUG Umbraco.Web.Routing.ContentFinderByNotFoundHandlers - [Thread 33] Replace handler 'umbraco.SearchForProfile' by new finder 'Umbraco.Web.Routing.ContentFinderByProfile'.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentFinderByProfile - [Thread 33] Not the profile path
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] FindPublishedContent: End finders, no document was found (took 45ms)
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] HandlePublishedContent: Begin
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] HandlePublishedContent: No document, try last chance lookup
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers - [Thread 33] Running for legacy url='download-ACMEbrochure'.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers - [Thread 33] Handler 'umbraco.handle404'.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentLastChanceFinderByNotFoundHandlers - [Thread 33] Replace handler 'umbraco.handle404' by new finder 'Umbraco.Web.Routing.ContentFinderByLegacy404'.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentFinderByLegacy404 - [Thread 33] Looking for a page to handle 404.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentFinderByLegacy404 - [Thread 33] Got id=1.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.ContentFinderByLegacy404 - [Thread 33] Could not find content with that id.
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] HandlePublishedContent: Failed to find a document, give up
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.Routing.PublishedContentRequestEngine - [Thread 33] HandlePublishedContent: End
    2015-11-03 14:55:57,653 [47] DEBUG Umbraco.Web.UmbracoModule - [Thread 33] Response status: Redirect=none, Is404=true, StatusCode=0
    2015-11-03 14:55:57,653 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | AcquireRequestState start
    2015-11-03 14:55:57,653 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - [Thread 33] UrlTracker HttpModule | AcquireRequestState start
    2015-11-03 14:55:57,654 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Incoming URL is: download-ACMEbrochure
    2015-11-03 14:55:57,654 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - [Thread 33] UrlTracker HttpModule | Incoming URL is: download-ACMEbrochure
    2015-11-03 14:55:57,654 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Response statusCode is 404, continue URL matching
    2015-11-03 14:55:57,654 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - [Thread 33] UrlTracker HttpModule | Response statusCode is 404, continue URL matching
    2015-11-03 14:55:57,655 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Current request's rootNodeId: 1133
    2015-11-03 14:55:57,655 [47] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - [Thread 33] UrlTracker HttpModule | Current request's rootNodeId: 1133
    2015-11-03 14:55:57,656 [47] DEBUG Umbraco.Web.UmbracoModule - [Thread 33] Total milliseconds for umbraco request to process: 52.0104
    

    URL Tracker entry for that url was recorded as following in URL tracker UI;

    Old Url: download-ACMEbrochure

    Old Url Querystring: [empty]

    Redirect URL: http://someotherpage/acmebrochure

    Redirect Type: Temporary (302)

    Forward QueryString: Yes

    Force Redirect : unchecked

    The above entry was working fine in 2.x, after upgrading to 3.9 simply landed on 404 page.

    If I go back to the url tracker entry and check Force Redirect, than it works.

    I dont know if its ideal to do that, to set Force Redirect for all the links.

    The same was the case for within umbraco redirects; ie. oldurl /somepage redirecturl: /some-other-page

    It wasnt working, till i go back and manually edit the entry field Force Redirect to true.

    Any particular reason why is this happening? I have hundreds of entries like that and need manual editing. I am not sure about the consequences of Force Redirect.

    Would appreciate your advise.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Nov 03, 2015 @ 08:46
    Stefan Kip
    0

    Hi!

    It seems the log isn't complete, there should be more info about why the Url Tracker is not able to find a redirect. So that's the first thing I notice.

    Force redirect simply means the redirect is executed before Umbraco gets a chance to find content, so it happens earlier in the pipeline.

    Why the redirect is not working is impossible for me to tell with this amount of information, sorry.

  • keilo 563 posts 1018 karma points
    Nov 03, 2015 @ 10:25
    keilo
    0

    thank you for the swifth reply!

    i had to turn off the debugging as it was live and size became unmanageable.

    From 2.x to 3.9, upgrade scenario with no domain change, what are the likely cause of redirects not working? If they are edited and set to force redirect they work, but not without.

    would appreciate if you can share your thoughts on the likely/potential cause.

  • keilo 563 posts 1018 karma points
    Nov 08, 2015 @ 15:56
    keilo
    0

    I realized if I edit the very same entries (mentioned above) and check Force Redirect, than redirects are working.

    As there are tons of them, is there a workaround? Can I safely go back to previous version of URL tracker after installing 3.9? Or can i somehow set Force Redirect to checked by default?

    would greatly appreciate your advise

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies