Opened 21 months ago

Closed 21 months ago

Last modified 21 months 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

Description

In fingerprint/attributes_manager.py 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 21 months 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:
https://gitweb.torproject.org/user/boklm/tor-browser-build.git/commit/?h=bug_23738&id=215de5d40007bd02de89dc349200d67a625f3b1e

comment:2 Changed 21 months ago by gk

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