Opened 16 years ago
Closed 16 years ago
#8264 closed defect (fixed)
Trac Error when attaching file to wiki
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11.5 |
Component: | general | Version: | 0.11.4 |
Severity: | minor | Keywords: | config |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In any of the wiki pages, clicking on Attach File button leads to the Trac Error Page that shows the message: Expected Integer, got u’10485760<<’
OS is OSX 10.4 Python used is 2.5.1
The last part of the trac log was
11:40:32 Trac[init] DEBUG: SELECT value FROM system WHERE name='discussion_version' 11:40:32 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect 11:40:32 Trac[main] DEBUG: Dispatching <Request "GET u'/attachment/wiki/InfrastrutturaTecnologica/'"> 11:40:32 Trac[svn_fs] DEBUG: Subversion bindings imported 11:40:32 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow'] 11:40:32 Trac[chrome] DEBUG: Prepare chrome data for request 11:40:33 Trac[main] WARNING: HTTPInternalError: 500 Trac Error (expected integer, got u'10485760<<') 11:40:33 Trac[session] DEBUG: Retrieving session for ID u'mimmo' 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/attachment/wiki/InfrastrutturaTecnologica/?action=new&attachfilebutton=Attach+file HTTP/1.1" 500 - 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/css/trac.css'"> 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/jquery.js'"> 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/js/jquery.js HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 11:40:33 Trac[main] DEBUG: 1234 unreachable objects found. 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/favicon.ico'"> 11:40:33 Trac[main] WARNING: HTTPNotFound: 404 Not Found (No handler matched request to /favicon.ico) 11:40:33 Trac[chrome] DEBUG: Prepare chrome data for request 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/trac.js'"> 11:40:33 Trac[main] DEBUG: 282 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/js/trac.js HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/search.js'"> 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/js/search.js HTTP/1.1" 200 - 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/css/trac.css HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/trac_logo_mini.png'"> 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/site/mypage_BANNER.png'"> 11:40:33 Trac[session] DEBUG: Retrieving session for ID u'mimmo' 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/dots.gif'"> 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/dots.gif HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/trac_logo_mini.png HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: 9 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/site/mypage_BANNER.png HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient2.png'"> 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/topbar_gradient2.png HTTP/1.1" 200 - 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/favicon.ico HTTP/1.1" 404 - 11:40:33 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient.png'"> 11:40:33 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.164 - - [06/May/2009 11:40:33] "GET /mypage/chrome/common/topbar_gradient.png HTTP/1.1" 200 - 11:40:33 Trac[main] DEBUG: 100 unreachable objects found.
Attachments (1)
Change History (10)
comment:1 by , 16 years ago
Keywords: | needinfo added |
---|
comment:2 by , 16 years ago
Keywords: | attach file added; needinfo removed |
---|
after disabling all the plugins the problem still remain.
here you find the backtrace while logged in with a user having TRAC ADMIN permission.
I included the backtrace from the server startup, hoping this could be helpful
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/ 15:04:33 Trac[loader] DEBUG: Adding plugin AztechCalendar 0.1 from /Users/macmini/trac_projects/mypage/plugins/AztechCalendar-0.1-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin TracFlexJs 0.1 from /Users/macmini/trac_projects/mypage/plugins/TracFlexJs-0.1-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin FlashView 0.1.3 from /Users/macmini/trac_projects/mypage/plugins/FlashView-0.1.3-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin TracCustomFieldAdmin 0.2 from /Users/macmini/trac_projects/mypage/plugins/TracCustomFieldAdmin-0.2-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin TracPageToPDF 0.2 from /Users/macmini/trac_projects/mypage/plugins/TracPageToPDF-0.2-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin Genshi 0.5.1 from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Genshi-0.5.1-py2.5-macosx-10.3-fat.egg 15:04:33 Trac[loader] DEBUG: Adding plugin setuptools 0.6c7 from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c7-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin TracDiscussion 0.6 from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin Trac 0.11.4 from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin TracConsultantTheme 1.0 from /Users/macmini/trac_projects/mypage/plugins/TracConsultantTheme-1.0-py2.5.egg 15:04:33 Trac[loader] DEBUG: Adding plugin TracThemeEngine 2.0 from /Users/macmini/trac_projects/mypage/plugins/TracThemeEngine-2.0-py2.5.egg 15:04:33 Trac[loader] DEBUG: Skipping "TracExcelViewer 0.1": ("DistributionNotFound: xlrd" not found) 15:04:33 Trac[loader] DEBUG: Skipping "IniAdmin 0.1": ("DistributionNotFound: TracWebAdmin" not found) 15:04:33 Trac[loader] DEBUG: Skipping "TracAddCommentMacro 0.2": ("DistributionNotFound: TracMacroPost" not found) 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.admin from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.db from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.htfile from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.http from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.pwhash from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.svnserve from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.web_ui from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading acct_mgr.api from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/TracAccountManager-0.2dev_r3111-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.php from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.ticket.query from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.attachment from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.patch from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not found) 15:04:33 Trac[loader] DEBUG: Loading trac.admin.web_ui from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.ticket.admin from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.rst from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("DistributionNotFound: docutils>=0.3" not found) 15:04:33 Trac[loader] DEBUG: Loading trac.db.postgres from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.timeline from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("DistributionNotFound: Pygments>=0.6" not found) 15:04:33 Trac[loader] DEBUG: Loading trac.about from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("DistributionNotFound: SilverCity>=0.9.4" not found) 15:04:33 Trac[loader] DEBUG: Loading trac.wiki.macros from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.db.sqlite from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.mimeview.enscript from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.web.auth from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.admin.console from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.db.mysql from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.search from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.prefs from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading trac.ticket.report from /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading azcalendar.azcalendar from /Users/macmini/trac_projects/mypage/plugins/AztechCalendar-0.1-py2.5.egg 15:04:33 Trac[loader] DEBUG: Loading flexjs.flexjs from /Users/macmini/trac_projects/mypage/plugins/TracFlexJs-0.1-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading FlashView from /Users/macmini/trac_projects/mypage/plugins/FlashView-0.1.3-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading customfieldadmin.api from /Users/macmini/trac_projects/mypage/plugins/TracCustomFieldAdmin-0.2-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading customfieldadmin.customfieldadmin from /Users/macmini/trac_projects/mypage/plugins/TracCustomFieldAdmin-0.2-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading pagetopdf.pagetopdf from /Users/macmini/trac_projects/mypage/plugins/TracPageToPDF-0.2-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.core from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.init from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.search from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.timeline from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.wiki from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.admin from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading TracDiscussion.notification from /Users/macmini/trac_projects/mypage/plugins/TracDiscussion-0.6-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading consultanttheme.theme from /Users/macmini/trac_projects/mypage/plugins/TracConsultantTheme-1.0-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading themeengine.api from /Users/macmini/trac_projects/mypage/plugins/TracThemeEngine-2.0-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading themeengine.admin from /Users/macmini/trac_projects/mypage/plugins/TracThemeEngine-2.0-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading themeengine.web_ui from /Users/macmini/trac_projects/mypage/plugins/TracThemeEngine-2.0-py2.5.egg 15:04:34 Trac[loader] DEBUG: Loading file plugin LatexDummy from /Users/macmini/trac_projects/mypage/plugins/LatexDummy.py 15:04:34 Trac[loader] DEBUG: Loading file plugin LatexMacro from /Users/macmini/trac_projects/mypage/plugins/LatexMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexhtmlMacro from /Users/macmini/trac_projects/mypage/plugins/TexhtmlMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexImageMacro from /Users/macmini/trac_projects/mypage/plugins/TexImageMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexBasicHeadersMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexBasicHeadersMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexBeginDocMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexBeginDocMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexCmdMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexCmdMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexDocClsMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexDocClsMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexEndDocMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexEndDocMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexGetResMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexGetResMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexSpecialCharMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexSpecialCharMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexTableMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexTableMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexLatexUsePkgMacro from /Users/macmini/trac_projects/mypage/plugins/TexLatexUsePkgMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin TexTimestampMacro from /Users/macmini/trac_projects/mypage/plugins/TexTimestampMacro.py 15:04:34 Trac[loader] DEBUG: Loading file plugin WikiTicketCalendar from /Users/macmini/trac_projects/mypage/plugins/WikiTicketCalendar.py 15:04:34 Trac[default_workflow] DEBUG: Workflow actions at initialization: {'resolve': {'operations': [u'set_resolution'], 'name': 'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'accept': {'operations': [u'set_owner_to_self'], 'name': 'accept', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new'], 'permissions': [u'TICKET_MODIFY']}, 'leave': {'operations': [u'leave_status'], 'name': 'leave', 'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, 'reopen': {'operations': [u'del_resolution'], 'name': 'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], 'permissions': [u'TICKET_CREATE']}, 'reassign': {'operations': [u'set_owner'], 'name': 'reassign', 'default': 0, 'newstate': u'new', 'oldstates': [u'new', u'assigned', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}} 15:04:34 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect 15:04:34 Trac[main] DEBUG: Dispatching <Request "GET u'/attachment/wiki/PutIntoProductionAndDeploy/'"> 15:04:35 Trac[svn_fs] DEBUG: Subversion bindings imported 15:04:35 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow'] 15:04:35 Trac[chrome] DEBUG: Prepare chrome data for request 15:04:35 Trac[main] WARNING: HTTPInternalError: 500 Trac Error (expected integer, got u'10485760<<') 15:04:35 Trac[session] DEBUG: Retrieving session for ID u'mimmo' 192.168.0.22 - - [06/May/2009 15:04:35] "GET /mypage/attachment/wiki/PutIntoProductionAndDeploy/?action=new&attachfilebutton=Attach+file HTTP/1.1" 500 - 15:04:35 Trac[main] DEBUG: 920 unreachable objects found. 15:04:35 Trac[main] DEBUG: Dispatching <Request "GET u'/favicon.ico'"> 15:04:35 Trac[main] WARNING: HTTPNotFound: 404 Not Found (No handler matched request to /favicon.ico) 15:04:35 Trac[chrome] DEBUG: Prepare chrome data for request 15:04:35 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/jquery.js'"> 15:04:35 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/css/trac.css'"> 15:04:35 Trac[session] DEBUG: Retrieving session for ID u'mimmo' 15:04:35 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:35] "GET /mypage/chrome/common/css/trac.css HTTP/1.1" 200 - 15:04:35 Trac[main] DEBUG: 268 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:35] "GET /mypage/chrome/common/js/jquery.js HTTP/1.1" 200 - 15:04:35 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/trac.js'"> 15:04:35 Trac[main] DEBUG: 9 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:35] "GET /mypage/chrome/common/js/trac.js HTTP/1.1" 200 - 15:04:35 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/search.js'"> 15:04:36 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/chrome/common/js/search.js HTTP/1.1" 200 - 15:04:36 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/site/mypage_BANNER.png'"> 15:04:36 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient.png'"> 15:04:36 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/dots.gif'"> 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/favicon.ico HTTP/1.1" 404 - 15:04:36 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient2.png'"> 15:04:36 Trac[main] DEBUG: 91 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/chrome/common/topbar_gradient2.png HTTP/1.1" 200 - 15:04:36 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/chrome/common/dots.gif HTTP/1.1" 200 - 15:04:36 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/chrome/common/topbar_gradient.png HTTP/1.1" 200 - 15:04:36 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/chrome/site/mypage_BANNER.png HTTP/1.1" 200 - 15:04:36 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/trac_logo_mini.png'"> 15:04:36 Trac[main] DEBUG: 0 unreachable objects found. 192.168.0.22 - - [06/May/2009 15:04:36] "GET /mypage/chrome/common/trac_logo_mini.png HTTP/1.1" 200 - 15:04:36 Trac[main] DEBUG: 9 unreachable objects found.
comment:3 by , 16 years ago
By "backtrace", I mean the Python backtrace you'd normally see in your web browser after the failed attempt to create an attachment.
comment:4 by , 16 years ago
you mean this?
Trac Error
expected integer, got u'10485760<<'
this is the only info i got in my browser after the failed attempt to create an attachment
thanks
comment:5 by , 16 years ago
I can reproduce this on latest trunk. The cause is invalid (non-numeric) characters in the max_size for attachments.
[attachment] max_size = 262144<<
comment:8 by , 16 years ago
Component: | attachment → general |
---|---|
Keywords: | config added; attach file removed |
Milestone: | → 0.11.5 |
Owner: | set to |
Severity: | normal → minor |
Proposed fix for the imprecise error message:
-
trac/config.py
18 18 from trac.core import ExtensionPoint, TracError 19 19 from trac.util.compat import set, sorted 20 20 from trac.util.text import to_unicode, CRLF 21 from trac.util.translation import _ 21 22 22 23 __all__ = ['Configuration', 'Option', 'BoolOption', 'IntOption', 'ListOption', 23 24 'PathOption', 'ExtensionOption', 'OrderedExtensionsOption', … … 28 29 29 30 class ConfigurationError(TracError): 30 31 """Exception raised when a value in the configuration file is not valid.""" 32 title = 'Configuration Error' 31 33 32 34 33 35 class Configuration(object): … … 317 319 try: 318 320 return int(value) 319 321 except ValueError: 320 raise ConfigurationError('expected integer, got %s' % repr(value)) 322 raise ConfigurationError( 323 _('[%(section)s] %(entry)s: expected integer, got %(value)s', 324 section=self.name, entry=name, value=repr(value))) 321 325 322 326 def getlist(self, name, default='', sep=',', keep_empty=True): 323 327 """Return a list of values that have been specified as a single
Seeing:
The above comes from a plugin.
So first try disabling all the plugins and see if you can reproduce the problem in Trac core. If not, then re-enable plugins one by one for identifying which is the culprit.
If this is indeed a problem in Trac itself, then please post the backtrace you should see when reproducing the problem while logged in with a user having TRAC_ADMIN permission.