Modify

Opened 4 years ago

Closed 4 years ago

#13948 closed defect (fixed)

AttributeError: can't set attribute

Reported by: wlfsbn Owned by: Ryan J Ollos
Priority: normal Component: ExtendedVersionPlugin
Severity: normal Keywords:
Cc: nk98ed@… Trac Release: 1.4

Description

How to Reproduce

While doing a GET operation on /versions, Trac issued an internal error.

(please provide additional details here)

I am using Trac as a stand-alone instance on a Macbook. I did not do anything specific, per se, to reproduce this issue. I just installed the plugin and enabled it. After enabling it in the trac.ini I upgraded trac database, the wiki, logged out of Trac UI, and killed the trac instance to bring it up once again. After the instance was back up again, I clicked on the "Versions" tab, and this error was reported on the tab.

This does look very similar to 13206 but 13206 is closed, hence opened a new ticket for this.

Python Traceback:

Most recent call last:

File "/Users/anurag.sarathy/Projects/Trac/Trac-environments/TracEnv1/plugins/lib/python2.7/site-packages/trac/web/main.py", line 639, in dispatch_request          
  dispatcher.dispatch(req)
File "/Users/anurag.sarathy/Projects/Trac/Trac-environments/TracEnv1/plugins/lib/python2.7/site-packages/trac/web/main.py", line 250, in dispatch          
  resp = chosen_handler.process_request(req)
File "/Users/anurag.sarathy/Projects/Trac/Trac-environments/TracEnv1/plugins/lib/python2.7/site-packages/ExtendedVersionPlugin-1.0.dev0-py2.7.egg/extendedversion/roadmap.py", line 59, in process_request          
  version.resource = resource

Request parameters:

{}

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:85.0) Gecko/20100101 Firefox/85.0

System Information

Trac 1.4.2
Babel 2.9.0
Docutils 0.16
Genshi 0.7.5 (with speedups)
Jinja2 2.11.2
Pygments 2.5.2
pysqlite 2.6.0
Python 2.7.18 (default, Jan 27 2021, 05:23:40)
[GCC Apple LLVM 12.0.0 (clang-1200.0.32.28)]
pytz 2020.5
setuptools 44.1.1
SQLite 3.34.0
Textile 3.0.4
jQuery 1.12.4
jQuery UI 1.12.1
jQuery Timepicker 1.6.3

Enabled Plugins

ExtendedVersionPlugin 1.0.dev0
TracSimpleMultiProject 0.7.1
TracTags 0.11
TracWikiExtras 1.3.1

Interface Customization

shared-htdocs
shared-templates
site-htdocs wolf.jpg
site-templates

Python Traceback

Traceback (most recent call last):
  File "/Users/anurag.sarathy/Projects/Trac/Trac-environments/TracEnv1/plugins/lib/python2.7/site-packages/trac/web/main.py", line 639, in dispatch_request
    dispatcher.dispatch(req)
  File "/Users/anurag.sarathy/Projects/Trac/Trac-environments/TracEnv1/plugins/lib/python2.7/site-packages/trac/web/main.py", line 250, in dispatch
    resp = chosen_handler.process_request(req)
  File "/Users/anurag.sarathy/Projects/Trac/Trac-environments/TracEnv1/plugins/lib/python2.7/site-packages/ExtendedVersionPlugin-1.0.dev0-py2.7.egg/extendedversion/roadmap.py", line 59, in process_request
    version.resource = resource
AttributeError: can't set attribute

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by wlfsbn <nk98ed@…>

Cc: nk98ed@… added

comment:2 Changed 4 years ago by anonymous

The resource attributed was added in milestone:1.3.2: r15844#file5. Should be an easy fix. Thanks for reporting.

comment:3 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 17993:

TracExtendedVersion 1.0dev: Make compatible with 1.3.3+

The resource property was added to the Version class.

Fixes #13948.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.