Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#25059 closed defect (fixed)

When running in apache+mod_wsgi, fpcentral fails to find its attributes definitions

Reported by: boklm Owned by: cypherpunks
Priority: Medium Milestone:
Component: Applications/Quality Assurance and Testing Version:
Severity: Normal Keywords: TorBrowserTeam201801
Cc: tbb-team Actual Points:
Parent ID: #23738 Points:
Reviewer: Sponsor: Sponsor4


In fingerprint/ the functions get_definitions and get_files_and_variables are loading json files from the directory fingerprint/attributes. When it is being run with apache+mod_wsgi the current directory is not the application's directory, so this doesn't work.

Child Tickets

Change History (2)

comment:1 Changed 2 years ago by boklm

Resolution: fixed
Status: newclosed

I started an fpcentral patch avoiding the use of relative paths to solve issue. However a more simple solution is to do an os.chdir() in fpcentral.wsgi before starting the application:

comment:2 Changed 2 years ago by gk

Sponsor: Sponsor4
Note: See TracTickets for help on using tickets.