Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8525 closed defect (worksforme)

[Patch] Environment Variables not available

Reported by: H3llGhost Owned by: John Hampton
Priority: normal Component: ModWsgiAcctmgrScript
Severity: normal Keywords:
Cc: Trac Release: 0.12


In the virtualhost.conf of my apache I define some environment variables, but I have no access.

RewriteCond ${lowercase:%{REQUEST_URI}} ^/([^/]+)
RewriteRule . - [E=trac.env_path:/var/trac/envs/%1]

But in the wsgi I haven't any access on it with following code:

env = open_environment(environ['trac.env_path'], use_cache=True)

Attachments (1)

acctmgr_auth.wsgi.diff (1.3 KB) - added by H3llGhost 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by H3llGhost

Resolution: worksforme
Status: newclosed

I found a solution. It is attached as patch.

comment:2 Changed 6 years ago by Ryan J Ollos

Summary: Environment Variables not avaible[Patch] Environment Variables not available

comment:3 Changed 6 years ago by Ryan J Ollos

I'm not familiar with this plugin, but it may be helpful to make a note on the project's wiki page about what you found, and point users to the patch in this ticket.

Changed 6 years ago by H3llGhost

Attachment: acctmgr_auth.wsgi.diff added

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain John Hampton.
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.