Modify

Opened 6 years ago

Closed 6 years ago

#3791 closed defect (invalid)

Plugin don't work with method=post forms

Reported by: anonymous Owned by: Blackhex
Priority: normal Component: ScreenshotsPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

it is a strange behaviour, but the plugin seems don't to work with method=post forms. I can not even add any image nor show the screenshot-add site. Changing all occurencies of method="post" in the screenshots.html template to method="get" solves the problem of getting to the page. However images could not be added, becase of post method.

I think the data is just not get to the plugin for some reasons I don't know. Sending post messages do work fine for other parts of trac, however not for that plugin. Have you experienced that problem before? Suggestions to solve it ?

Attachments (1)

test.diff (9.0 KB) - added by Blackhex 6 years ago.
First attempt to investigate the problem.

Download all attachments as: .zip

Change History (13)

comment:1 Changed 6 years ago by Blackhex

  • Status changed from new to assigned

No. What is your server and client, what is the error message?

comment:2 Changed 6 years ago by anonymous

Client: Mozilla Firefox (2.x, 3.x, Internet Explorer 7) Server: 64 Bit with Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c Trac Version: 0.11 (also tried 0.11.1) Python: 2.4.4 (#1, Apr 16 2008, 17:56:48) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]

I have examined the error further. I have added some log outputs to the file core.py (of the screenshots plugin) in the method process_request(self, req). Just in the beginning of the method, I have added

def process_request(self, req):
        self.log.debug('LOG: %s, %s' % (req.method,req.args.get('action'),))

        # Create request context.
        context = Context.from_request(req)('screenshots-core')

just to see which kind of request is coming to that function, when I klick on "Add" - Button on the screenshots overview page. The form to which the button belongs, has as method="post" specifed, but in the log output I see only "LOG: GET, None", which means instead of POST I recieve GET request although form contain a POST request.

The strange thing is that all other stuff of trac using POST request do work fine (Milestones, Tickets, Wiki, ...)

comment:3 Changed 6 years ago by anonymous

Oh, there is no error message, because of the wrong request method.

comment:4 Changed 6 years ago by Blackhex

It took me a while to install and configure the apache+mod_python to test this. Unfortunalelly, I'm not experiencing this with apache 2.2.9, mod_python 3.3.1 and firefox 2.0.0.16. Are you sure that "LOG: GET, None" doesn't come from screenshots view requests? Are you sure that you have correctly setted up view filter and your screenshots are not just filtered out? If you are, please send me a debug log from the event if I could find something there.

comment:5 Changed 6 years ago by anonymous

No the LOG: GET, None message comes from the view request as also from the Add request. No there are no screenshots at all. I can not even add them, because I can not get to the add-page. Only when I change the request to method="get" instead of method="post" in the templates/screenshots.html I ca go to the screenshots-add.html webpage, however new screenshots are not added then, because of don't working POST requests, which are needed to send the data. Here is a log cutout:

Just a simple klick on the Screenshot webpage to show the screenshots:

2008-09-24 18:23:31,133 Trac[__init__] DEBUG: SELECT value FROM system WHERE name='downloads_version'
2008-09-24 18:23:31,209 Trac[__init__] DEBUG: SELECT value FROM system WHERE name='screenshots_version'
2008-09-24 18:23:31,210 Trac[__init__] DEBUG: Dispatching <Request "GET u'/screenshots/'">
2008-09-24 18:23:31,259 Trac[__init__] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2008-09-24 18:23:31,320 Trac[__init__] DEBUG: Subversion bindings imported
2008-09-24 18:23:31,322 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:31,323 Trac[__init__] DEBUG: LOG: GET, None
2008-09-24 18:23:31,325 Trac[__init__] DEBUG: action: None
2008-09-24 18:23:31,325 Trac[__init__] DEBUG: actions: ['view']
2008-09-24 18:23:31,328 Trac[__init__] DEBUG: SELECT name, description FROM component
2008-09-24 18:23:31,328 Trac[__init__] DEBUG: SELECT name, description FROM version
2008-09-24 18:23:31,329 Trac[__init__] DEBUG: enabled_components: [u'none']
2008-09-24 18:23:31,329 Trac[__init__] DEBUG: enabled_versions: [u'none']
2008-09-24 18:23:31,329 Trac[__init__] DEBUG: [u'none']
2008-09-24 18:23:31,329 Trac[__init__] DEBUG: [u'none', u'none']
2008-09-24 18:23:31,329 Trac[__init__] DEBUG: SELECT DISTINCT id, name, description, time, author, tags, file, width, height FROM screenshot s LEFT JOIN (SELECT screenshot, version FROM screenshot_version) v ON s.id = v.screenshot LEFT JOIN (SELECT screenshot, component FROM screenshot_component) c ON s.id = c.screenshot WHERE v.version IN (none) OR v.version IS NULL OR c.component IN (none) OR c.component IS NULL
2008-09-24 18:23:31,330 Trac[__init__] DEBUG: Prepare chrome data for request
2008-09-24 18:23:31,674 Trac[__init__] DEBUG: 1828 unreachable objects found.
2008-09-24 18:23:32,042 Trac[__init__] DEBUG: Loading spamfilter.session from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,048 Trac[__init__] DEBUG: Loading spamfilter.ip_blacklist from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,055 Trac[__init__] DEBUG: Skipping "spamfilter.ip_blacklist = tracspamfilter.filters.ip_blacklist [dns]": ("dnspython>=1.3.5" not found)
2008-09-24 18:23:32,056 Trac[__init__] DEBUG: Loading spamfilter.adapters from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,061 Trac[__init__] DEBUG: Loading spamfilter.ip_throttle from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,062 Trac[__init__] DEBUG: Loading spamfilter.extlinks from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,063 Trac[__init__] DEBUG: Loading spamfilter.bayes from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,070 Trac[__init__] DEBUG: Skipping "spamfilter.bayes = tracspamfilter.filters.bayes [spambayes]": ("spambayes" not found)
2008-09-24 18:23:32,070 Trac[__init__] DEBUG: Loading spamfilter from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,070 Trac[__init__] DEBUG: Loading spamfilter.akismet from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,091 Trac[__init__] DEBUG: Loading spamfilter.admin from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,093 Trac[__init__] DEBUG: Loading spamfilter.regex from /usr/lib/python2.4/site-packages/TracSpamFilter-0.2.1dev_r7539-py2.4.egg
2008-09-24 18:23:32,094 Trac[__init__] DEBUG: Loading acct_mgr.admin from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,098 Trac[__init__] DEBUG: Loading acct_mgr.db from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,100 Trac[__init__] DEBUG: Loading acct_mgr.htfile from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,101 Trac[__init__] DEBUG: Loading acct_mgr.http from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,101 Trac[__init__] DEBUG: Loading acct_mgr.notification from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,102 Trac[__init__] DEBUG: Loading acct_mgr.pwhash from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,102 Trac[__init__] DEBUG: Loading acct_mgr.svnserve from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,103 Trac[__init__] DEBUG: Loading acct_mgr.web_ui from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,103 Trac[__init__] DEBUG: Loading acct_mgr.api from /usr/lib/python2.4/site-packages/TracAccountManager-0.2.1dev_r3857-py2.4.egg
2008-09-24 18:23:32,103 Trac[__init__] DEBUG: Loading tracdownloader.admin from /usr/lib/python2.4/site-packages/TracDownloader-0.1-trac-0.11.egg
2008-09-24 18:23:32,120 Trac[__init__] DEBUG: Loading tracdownloader.web_ui from /usr/lib/python2.4/site-packages/TracDownloader-0.1-trac-0.11.egg
2008-09-24 18:23:32,121 Trac[__init__] DEBUG: Loading tracdownloader.db from /usr/lib/python2.4/site-packages/TracDownloader-0.1-trac-0.11.egg
2008-09-24 18:23:32,121 Trac[__init__] DEBUG: Loading tracdownloader.model from /usr/lib/python2.4/site-packages/TracDownloader-0.1-trac-0.11.egg
2008-09-24 18:23:32,122 Trac[__init__] DEBUG: Loading TracDownloads.timeline from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,124 Trac[__init__] DEBUG: Loading TracDownloads.api from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,125 Trac[__init__] DEBUG: Loading TracDownloads.wiki from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,125 Trac[__init__] DEBUG: Loading TracDownloads.core from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,125 Trac[__init__] DEBUG: Loading TracDownloads.init from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,126 Trac[__init__] DEBUG: Loading TracDownloads.tags from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,138 Trac[__init__] ERROR: Skipping "TracDownloads.tags = tracdownloads.tags [tags]": (can't import "cannot import name ITaggingSystemProvider")
2008-09-24 18:23:32,139 Trac[__init__] DEBUG: Loading TracDownloads.admin from /usr/lib/python2.4/site-packages/TracDownloads-0.2-py2.4.egg
2008-09-24 18:23:32,139 Trac[__init__] DEBUG: Loading tractags from /usr/lib/python2.4/site-packages/TracTags-0.6-py2.4.egg
2008-09-24 18:23:32,140 Trac[__init__] DEBUG: Loading tracext.google.analytics.admin from /usr/lib/python2.4/site-packages/TracGoogleAnalytics-0.2.0-py2.4.egg
2008-09-24 18:23:32,141 Trac[__init__] DEBUG: Loading tracext.google.analytics from /usr/lib/python2.4/site-packages/TracGoogleAnalytics-0.2.0-py2.4.egg
2008-09-24 18:23:32,142 Trac[__init__] DEBUG: Loading tracext.google.analytics.web_ui from /usr/lib/python2.4/site-packages/TracGoogleAnalytics-0.2.0-py2.4.egg
2008-09-24 18:23:32,144 Trac[__init__] DEBUG: Loading trac.ticket.web_ui from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,149 Trac[__init__] DEBUG: Loading trac.mimeview.php from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,150 Trac[__init__] DEBUG: Loading trac.ticket.query from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,151 Trac[__init__] DEBUG: Loading trac.attachment from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,151 Trac[__init__] DEBUG: Loading trac.versioncontrol.svn_fs from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,161 Trac[__init__] DEBUG: Loading trac.mimeview.patch from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,162 Trac[__init__] DEBUG: Loading trac.mimeview.txtl from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,171 Trac[__init__] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("textile>=2.0" not found)
2008-09-24 18:23:32,171 Trac[__init__] DEBUG: Loading trac.admin.web_ui from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,173 Trac[__init__] DEBUG: Loading trac.ticket.admin from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,174 Trac[__init__] DEBUG: Loading trac.mimeview.rst from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,182 Trac[__init__] DEBUG: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("docutils>=0.3" not found)
2008-09-24 18:23:32,183 Trac[__init__] DEBUG: Loading trac.db.postgres from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,184 Trac[__init__] DEBUG: Loading trac.versioncontrol.web_ui from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,184 Trac[__init__] DEBUG: Loading trac.timeline from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,185 Trac[__init__] DEBUG: Loading trac.mimeview.pygments from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,194 Trac[__init__] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("Pygments>=0.6" not found)
2008-09-24 18:23:32,194 Trac[__init__] DEBUG: Loading trac.about from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,195 Trac[__init__] DEBUG: Loading trac.ticket.roadmap from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,197 Trac[__init__] DEBUG: Loading trac.mimeview.silvercity from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,206 Trac[__init__] DEBUG: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("SilverCity>=0.9.4" not found)
2008-09-24 18:23:32,206 Trac[__init__] DEBUG: Loading trac.wiki.macros from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,206 Trac[__init__] DEBUG: Loading trac.db.sqlite from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,213 Trac[__init__] DEBUG: Loading trac.wiki.web_ui from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,215 Trac[__init__] DEBUG: Loading trac.mimeview.enscript from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,216 Trac[__init__] DEBUG: Loading trac.web.auth from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,216 Trac[__init__] DEBUG: Loading trac.admin.console from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,222 Trac[__init__] DEBUG: Loading trac.db.mysql from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,273 Trac[__init__] DEBUG: Loading trac.search from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,274 Trac[__init__] DEBUG: Loading trac.prefs from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,275 Trac[__init__] DEBUG: Loading trac.ticket.report from /usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg
2008-09-24 18:23:32,277 Trac[__init__] DEBUG: Loading TracScreenshots.core from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,279 Trac[__init__] DEBUG: Loading TracScreenshots.tags from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,280 Trac[__init__] DEBUG: Loading TracScreenshots.timeline from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,280 Trac[__init__] DEBUG: Loading TracScreenshots.init from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,281 Trac[__init__] DEBUG: Loading TracScreenshots.matrix_view from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,286 Trac[__init__] DEBUG: Loading TracScreenshots.api from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,286 Trac[__init__] DEBUG: Loading TracScreenshots.wiki from /usr/lib/python2.4/site-packages/TracScreenshots-0.6-py2.4.egg
2008-09-24 18:23:32,356 Trac[__init__] 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': []}}

Now, I clicked on the Add button to get to the ad screenshot dialog. You can see below that it does still call LOG: GET, None although a POST request occurs.

2008-09-24 18:23:32,363 Trac[__init__] DEBUG: SELECT value FROM system WHERE name='downloads_version'
2008-09-24 18:23:32,374 Trac[__init__] DEBUG: SELECT value FROM system WHERE name='screenshots_version'
2008-09-24 18:23:32,375 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/css/trac.css'">
2008-09-24 18:23:32,418 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:32,456 Trac[__init__] DEBUG: 38 unreachable objects found.
2008-09-24 18:23:32,505 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/screenshots/css/matrix-view.css'">
2008-09-24 18:23:32,507 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:32,544 Trac[__init__] DEBUG: 320 unreachable objects found.
2008-09-24 18:23:32,612 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/screenshots/css/screenshots.css'">
2008-09-24 18:23:32,615 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:32,654 Trac[__init__] DEBUG: 74 unreachable objects found.
2008-09-24 18:23:32,683 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/js/jquery.js'">
2008-09-24 18:23:32,696 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:32,735 Trac[__init__] DEBUG: 81 unreachable objects found.
2008-09-24 18:23:32,839 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/js/trac.js'">
2008-09-24 18:23:32,842 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:32,871 Trac[__init__] DEBUG: 81 unreachable objects found.
2008-09-24 18:23:32,896 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/js/search.js'">
2008-09-24 18:23:32,899 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:32,947 Trac[__init__] DEBUG: 74 unreachable objects found.
2008-09-24 18:23:32,973 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/screenshots/js/screenshots.js'">
2008-09-24 18:23:32,976 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:33,015 Trac[__init__] DEBUG: 74 unreachable objects found.
2008-09-24 18:23:33,064 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/trac_logo_mini.png'">
2008-09-24 18:23:33,067 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:33,075 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient.png'">
2008-09-24 18:23:33,078 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:33,130 Trac[__init__] DEBUG: 74 unreachable objects found.
2008-09-24 18:23:33,148 Trac[__init__] DEBUG: 81 unreachable objects found.
2008-09-24 18:23:33,172 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/dots.gif'">
2008-09-24 18:23:33,175 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:33,202 Trac[__init__] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient2.png'">
2008-09-24 18:23:33,213 Trac[__init__] DEBUG: 74 unreachable objects found.
2008-09-24 18:23:33,214 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:33,243 Trac[__init__] DEBUG: 74 unreachable objects found.
2008-09-24 18:23:35,507 Trac[__init__] DEBUG: Dispatching <Request "GET u'/screenshots/'">
2008-09-24 18:23:35,517 Trac[__init__] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2008-09-24 18:23:35,572 Trac[__init__] DEBUG: Subversion bindings imported
2008-09-24 18:23:35,575 Trac[__init__] DEBUG: Retrieving session for ID u'art'
2008-09-24 18:23:35,576 Trac[__init__] DEBUG: LOG: GET, None
2008-09-24 18:23:35,577 Trac[__init__] DEBUG: action: None
2008-09-24 18:23:35,577 Trac[__init__] DEBUG: actions: ['view']
2008-09-24 18:23:35,579 Trac[__init__] DEBUG: SELECT name, description FROM component
2008-09-24 18:23:35,579 Trac[__init__] DEBUG: SELECT name, description FROM version
2008-09-24 18:23:35,580 Trac[__init__] DEBUG: enabled_components: [u'none']
2008-09-24 18:23:35,580 Trac[__init__] DEBUG: enabled_versions: [u'none']
2008-09-24 18:23:35,580 Trac[__init__] DEBUG: [u'none']
2008-09-24 18:23:35,580 Trac[__init__] DEBUG: [u'none', u'none']
2008-09-24 18:23:35,580 Trac[__init__] DEBUG: SELECT DISTINCT id, name, description, time, author, tags, file, width, height FROM screenshot s LEFT JOIN (SELECT screenshot, version FROM screenshot_version) v ON s.id = v.screenshot LEFT JOIN (SELECT screenshot, component FROM screenshot_component) c ON s.id = c.screenshot WHERE v.version IN (none) OR v.version IS NULL OR c.component IN (none) OR c.component IS NULL
2008-09-24 18:23:35,581 Trac[__init__] DEBUG: Prepare chrome data for request
2008-09-24 18:23:35,870 Trac[__init__] DEBUG: 1935 unreachable objects found.

I have no idead why this happens. One which I could try is to bake my own egg (like in the Tracs examples) and then to see if correct request messages are coming to the plugin or not. If not, then it is a Trac related problem if yes, then there is something wrong...

comment:6 Changed 6 years ago by Blackhex

I don't have a clue too, only action controllers for ticket workflow: ['ConfigurableTicketWorkflow'] message seems little suspicious to me. Please try to apply attached pach if it helps you..

Changed 6 years ago by Blackhex

First attempt to investigate the problem.

comment:7 Changed 6 years ago by psyborg

Hi, i tried the patch, but unfortunately nothing changes. Now I have in the form

<input type="hidden" name="screenshots_action" value="add" />

but still the value is not passed to the script. Could be that the problem is not screenshot plugin related, because the post request is just not passed down to the core.py - process_request method. Very suspisious thing happens here...

comment:8 Changed 6 years ago by psyborg

Ok, I tried now to run trac as standalone server and it seems that the plugin do recieve now the POST requests. I can now get even to the add screenshot dialog. I have to test it further...

comment:9 Changed 6 years ago by Blackhex

Hmm. If it is not some kind of typo in screnshots.html template, then it is most probably not connected to the plugin. You may also try to access it in different client to see if it is just apache related problem or firefox-apache related.

comment:10 Changed 6 years ago by psyborg

  • Resolution set to worksforme
  • Status changed from assigned to closed

I tried it with different clients, IE and firefox. For the firefox I tried 2.x and 3.x versions it doesn't work. It could be that there are some misconfiguration in my apache mod_python module, so that it do not properly handles POST requests.

I have now configured to run the trac server as standalone and disabled the trac access through apache. Now it works fine and I can add/edit/delete screenshots without any issues. However the problem using trac under apache is somehow very strange. Let me see if I would be able to find the bug in the near future :) ...

comment:11 Changed 6 years ago by Blackhex

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I striked against this issue too with mod_python after update to Trac 0.11 :-) It has to be invesitaged.

comment:12 Changed 6 years ago by Blackhex

  • Resolution set to invalid
  • Status changed from reopened to closed

I don't know if it is connected but it started working right after I've changed

DocumentRoot /var/lib/trac/<environment>/

to

DocumentRoot /var/lib/trac/<environment>/htdocs

in virtual host configuration. So it seems that it's Apache configuration related problem.

Add Comment

Modify Ticket

Action
as closed The owner will remain Blackhex.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.