Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC8: Fallback disabled for Sitecore MVC? #16

Open
IvanLieckens opened this issue Feb 6, 2015 · 4 comments
Open

SC8: Fallback disabled for Sitecore MVC? #16

IvanLieckens opened this issue Feb 6, 2015 · 4 comments

Comments

@IvanLieckens
Copy link

We have a Sitecore 8 and are using glass mapper. During the GetModel Pipeline of MVC the FallbackDisabler is set to Disabled? We are using the ancestor fallback.

@seankearney
Copy link
Member

Ivan,
I'm not sure I understand the question here.

@IvanLieckens
Copy link
Author

Our solution is a Sitecore 8 rev 150121. We are using glass mapper in our MVC view renderings. We have an overridden ExecuteRenderer (to display errors) and an overridden GetGlassModel (to enable using queries in datasources)

I executed following steps:

  • Downloaded the Sitecore Field Fallback Code
  • Replaced references to Sitecore with v8 DLLs
  • Synched in the TDS projects into our solution
  • Removed the EnableSites() in the Initialize of the FallbackValuesProvider (causes stackoverflow in SC8)
  • Adapted the site configurations to enable fallback on shell, system and website
  • Enabled ancestor fallback pipeline processor
  • Set the desired template fields to fallback

The fallback functioned fine in the sitecore backend, however on our rendered frontend the values were not falling back as expected. Debugging revealed that during the Mvc RenderRendering pipeline the value of FallbackDisabler.CurrentValue == FallbackStates.Disabled is TRUE. I found no explanation why during rendering the fallback would be disabled. As a temporary workaround I have placed a FallbackDisabler around our ExecuteRenderer process method to enable fallback forcefully. I was hoping you could explain the strange behavior and maybe resolve the root cause of the fallback being disabled during the Mvc RenderRendering pipeline...

Sincerely,
Ivan

@seankearney
Copy link
Member

The stack overflow exception with Sitecore 8 has been reproduced and reported to Sitecore. Ticket 432531

We are still looking into the MVC part of this.

cc: @SaintSkeeta

@mcreale
Copy link

mcreale commented May 6, 2015

@seankearney Did Sitecore ever give you a resolution on this?

Thanks!
Matt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants