Comment 11 for bug 657109

Revision history for this message
Anthony Lenton (elachuni) wrote :

The sca logs for this error actually included an oops report, Oops-1756EA1582
Looking at that it seems we're failing to access the 'latitude' attribute on Jane's PersonLocation, when trying to take a snapshot of the person:

  Unauthorized: (<PersonLocation at 0x2b480af0c4d0>, 'latitude', 'launchpad.View')

    Traceback (most recent call last):
  Module zope.publisher.publish, line 134, in publish
    result = publication.callObject(request, obj)
  Module lazr.restful.publisher, line 171, in callObject
    WebServicePublicationMixin, self).callObject(request, object)
  Module canonical.launchpad.webapp.publication, line 483, in callObject
    return mapply(ob, request.getPositionalArguments(), request)
  Module zope.publisher.publish, line 109, in mapply
    return debug_call(obj, args)
   - __traceback_info__: <security proxied lazr.restful._resource.EntryResource instance at 0x2b4807f64190>
  Module zope.publisher.publish, line 115, in debug_call
    return obj(*args)
  Module lazr.restful._resource, line 913, in __call__
    result = self.do_POST()
  Module lazr.restful._resource, line 746, in do_POST
    return self.handleCustomPOST(operation_name)
  Module lazr.restful._resource, line 1325, in handleCustomPOST
    value = super(EntryResource, self).handleCustomPOST(operation_name)
  Module lazr.restful._resource, line 730, in handleCustomPOST
    return operation()
  Module lazr.restful._operation, line 81, in __call__
    self.context, providing=providedBy(self.context))
  Module lazr.lifecycle.snapshot, line 85, in __init__
    value = getattr(ob, name, _marker)
  Module lp.registry.model.person, line 612, in latitude
    return ProxyFactory(self.location).latitude
Unauthorized: (<PersonLocation at 0x2b480af0c4d0>, 'latitude', 'launchpad.View')

This would seem to say that it will fail consistently for users like Jane that have opted to hide their location, until we sort this out on LP. We'll discuss ways to work this out with them.