Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#8525 closed defect (worksforme)

[Patch] Environment Variables not available

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

Description

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 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by H3llGhost

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

I found a solution. It is attached as patch.

comment:2 Changed 4 years ago by rjollos

  • Summary changed from Environment Variables not avaible to [Patch] Environment Variables not available

comment:3 Changed 4 years ago by rjollos

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 4 years ago by H3llGhost

Add Comment

Modify Ticket

Action
as closed The owner will remain pacopablo.
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.