You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Dave Brondsema <br...@users.sf.net> on 2014/03/01 00:04:47 UTC

[allura:tickets] #7229 User profile 500s if activity has a commit ref



---

** [tickets:#7229] User profile 500s if activity has a commit ref**

**Status:** open
**Milestone:** forge-mar-7
**Labels:** activitystreams 
**Created:** Fri Feb 28, 2014 11:04 PM UTC by Dave Brondsema
**Last Updated:** Fri Feb 28, 2014 11:04 PM UTC
**Owner:** nobody

Would be nice if each section on the profile page could fail gracefully, in addition to fixing root error here.

~~~~
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 20 in top-level template code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 102 in top-level template code
  {% block content_base %}
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 49 in block "content_base"
  {{ section.display() }}
File '/var/local/allura/Allura/allura/ext/user_profile/user_main.py', line 268 in display
  'auth': AuthenticationProvider.get(request),
File '/var/local/allura/ForgeActivity/forgeactivity/main.py', line 268 in prepare_context
  activity.obj.project = activity_obj.project if activity_obj else None
AttributeError: 'Commit' object has no attribute 'project'
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7229 User profile 500s if activity has a commit ref

Posted by Cory Johns <ma...@users.sf.net>.
`allura:cj/7229`

I couldn't reproduce the commit activity not having a project, but this fix should handle it gracefully regardless.


---

** [tickets:#7229] User profile 500s if activity has a commit ref**

**Status:** code-review
**Milestone:** forge-mar-7
**Labels:** activitystreams 
**Created:** Fri Feb 28, 2014 11:04 PM UTC by Dave Brondsema
**Last Updated:** Mon Mar 03, 2014 03:13 PM UTC
**Owner:** Cory Johns

Would be nice if each section on the profile page could fail gracefully, in addition to fixing root error here.

~~~~
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 20 in top-level template code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 102 in top-level template code
  {% block content_base %}
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 49 in block "content_base"
  {{ section.display() }}
File '/var/local/allura/Allura/allura/ext/user_profile/user_main.py', line 268 in display
  'auth': AuthenticationProvider.get(request),
File '/var/local/allura/ForgeActivity/forgeactivity/main.py', line 268 in prepare_context
  activity.obj.project = activity_obj.project if activity_obj else None
AttributeError: 'Commit' object has no attribute 'project'
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7229 User profile 500s if activity has a commit ref

Posted by Cory Johns <ma...@users.sf.net>.
- **status**: in-progress --> code-review



---

** [tickets:#7229] User profile 500s if activity has a commit ref**

**Status:** code-review
**Milestone:** forge-mar-7
**Labels:** activitystreams 
**Created:** Fri Feb 28, 2014 11:04 PM UTC by Dave Brondsema
**Last Updated:** Mon Mar 03, 2014 03:13 PM UTC
**Owner:** Cory Johns

Would be nice if each section on the profile page could fail gracefully, in addition to fixing root error here.

~~~~
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 20 in top-level template code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 102 in top-level template code
  {% block content_base %}
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 49 in block "content_base"
  {{ section.display() }}
File '/var/local/allura/Allura/allura/ext/user_profile/user_main.py', line 268 in display
  'auth': AuthenticationProvider.get(request),
File '/var/local/allura/ForgeActivity/forgeactivity/main.py', line 268 in prepare_context
  activity.obj.project = activity_obj.project if activity_obj else None
AttributeError: 'Commit' object has no attribute 'project'
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7229 User profile 500s if activity has a commit ref

Posted by Cory Johns <ma...@users.sf.net>.
- **status**: open --> in-progress
- **assigned_to**: Cory Johns
- **Size**:  --> 1



---

** [tickets:#7229] User profile 500s if activity has a commit ref**

**Status:** in-progress
**Milestone:** forge-mar-7
**Labels:** activitystreams 
**Created:** Fri Feb 28, 2014 11:04 PM UTC by Dave Brondsema
**Last Updated:** Fri Feb 28, 2014 11:04 PM UTC
**Owner:** Cory Johns

Would be nice if each section on the profile page could fail gracefully, in addition to fixing root error here.

~~~~
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 20 in top-level template code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 102 in top-level template code
  {% block content_base %}
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 49 in block "content_base"
  {{ section.display() }}
File '/var/local/allura/Allura/allura/ext/user_profile/user_main.py', line 268 in display
  'auth': AuthenticationProvider.get(request),
File '/var/local/allura/ForgeActivity/forgeactivity/main.py', line 268 in prepare_context
  activity.obj.project = activity_obj.project if activity_obj else None
AttributeError: 'Commit' object has no attribute 'project'
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7229 User profile 500s if activity has a commit ref

Posted by Dave Brondsema <br...@users.sf.net>.
- **status**: code-review --> closed
- **QA**: Dave Brondsema



---

** [tickets:#7229] User profile 500s if activity has a commit ref**

**Status:** closed
**Milestone:** forge-mar-7
**Labels:** activitystreams 
**Created:** Fri Feb 28, 2014 11:04 PM UTC by Dave Brondsema
**Last Updated:** Mon Mar 03, 2014 03:48 PM UTC
**Owner:** Cory Johns

Would be nice if each section on the profile page could fail gracefully, in addition to fixing root error here.

~~~~
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 20 in top-level template code
  {% extends g.theme.master %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 102 in top-level template code
  {% block content_base %}
File '/var/local/allura/Allura/allura/ext/user_profile/templates/user_index.html', line 49 in block "content_base"
  {{ section.display() }}
File '/var/local/allura/Allura/allura/ext/user_profile/user_main.py', line 268 in display
  'auth': AuthenticationProvider.get(request),
File '/var/local/allura/ForgeActivity/forgeactivity/main.py', line 268 in prepare_context
  activity.obj.project = activity_obj.project if activity_obj else None
AttributeError: 'Commit' object has no attribute 'project'
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.