System error if trying to subscribe to a calendar while not logged in

Bug #2166 reported by Guilherme Salgado
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Gabriel Neuman

Bug Description

If you go to http://localhost:8086/people/name16/+calendar/+subscribe without being logged in you'll get a traceback because there's no logged in user. I guess that page should be protected with launchpad.AnyPerson, because it makes no sense to allow anonymous subscriptions.

This is the relevant part of the traceback:
    ...
    * Module canonical.launchpad.browser.cal, line 763, in __init__
      self._subscriptions = ICalendarSubscriptionSubset(user)
    * Module zope.interface.interface, line 698, in __call__
      raise TypeError("Could not adapt", obj, self)

TypeError: ('Could not adapt', None, <InterfaceClass canonical.launchpad.interfaces.cal.ICalendarSubscriptionSubset>)

User: Anonymous

Christian Reis (kiko)
Changed in launchpad:
assignee: nobody → gabrielneuman
Christian Reis (kiko)
Changed in launchpad:
status: New → Fixed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.