#37 ✓resolved
Kieran P

500 when logged out users view private topics (semi-rare)

Reported by Kieran P | August 19th, 2008 @ 11:31 AM | in 1.1

When a private topic is made, and then a logged out comes along and views the private topic before the public one (such as when a link is followed or the session times out and they reload), then because they're logged out, they get rendered the public version.

However, because they started off viewing the private version before the public one was rendered, the fragments for private are found, and so the variable @topic is not created.

However, when it comes to rendering the public topic, it cant find the cache pieces, and the 500 is caused by the missing @topic variable.

The problem lies in the method has_all_fragments? method.

The fix I'll use is adding permitted_to_view_private_items? method to the method somewhere to decide to use public or private. Ticketing here for reference.

Comments and changes to this ticket

  • Kieran P

    Kieran P August 20th, 2008 @ 09:39 AM

    • State changed from “new” to “open”

    A fix has been applied along with a few other changes to the branch enhancement_rt_num_4128_auto_site_basket_private_search

    Ready for testing.

  • Kieran P

    Kieran P August 26th, 2008 @ 03:56 PM

    • State changed from “open” to “resolved”

    The site that experienced this issue has been updated, tested, and this bug appears to be resolved now. Closing ticket.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket