Edgewall Software
Modify

Opened 12 years ago

Closed 12 years ago

#10551 closed defect (worksforme)

Static files cannot be loaded

Reported by: framay <franz.mayer@…> Owned by:
Priority: normal Milestone:
Component: general Version: 0.13dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I am facing the problem that no static page content of Trac is loaded anymore (means no CSS, Javascript and Image files).

When looking into the logs, I am getting:

2012-02-02 08:45:21,234 Trac[build\bdist.win32\egg\trac\web\main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "build\bdist.win32\egg\trac\web\main.py", line 478, in _dispatch_request
    dispatcher.dispatch(req)
  File "build\bdist.win32\egg\trac\web\main.py", line 198, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\trac\web\chrome.py", line 569, in process_request
    and req.args['hash'] == self.static_hash
KeyError: 'hash'

I thought there have already been a ticket, but I haven't found it. I am using Trac 0.13dev-r10932 on that system.

Attachments (0)

Change History (2)

comment:1 by framay <franz.mayer@…>, 12 years ago

Severity: criticalnormal

I fixed the problem, since I removed a plugin, which a collegue of mine developed and installed.

So this ticket might then just a ticket for changing documentation of plugin development (and of course for further investigators).

comment:2 by Remy Blank, 12 years ago

Resolution: worksforme
Status: newclosed

This can't happen under normal conditions. process_request() is only ever called if match_request() returns True, and if this is the case, then req.args has the key 'hash'.

Of course, a plugin removing arbitrary keys from req.args is bound to make trouble.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.