Project

General

Profile

Actions

Bug #443

closed

postproc.php has hard-coded link to appion directory change to config.php

Added by Neil Voss over 14 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
05/10/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.0.1
Show in known bugs:
No
Workaround:

Description

postproc.php has hard-coded link to appion directory.

Need to add a appion directory that is accessible by the web server to config.php

It is a rarely used function, but you cannot see the amplitude curves on the page without data from the appion directory


Related issues 3 (0 open3 closed)

Related to Appion - Feature #193: Store data files for appion in a common directoryClosed03/08/2010

Actions
Related to Appion - Bug #1717: Add appionlibdir to the configuration wizardClosedAmber Herold04/14/2012

Actions
Has duplicate Appion - Bug #194: Amplitude correction files path is hard coded in the myami codeDuplicate03/08/2010

Actions
Actions #1

Updated by Amber Herold over 14 years ago

  • Target version set to Appion/Leginon 2.1.0
  • Affected Version set to Appion/Leginon 2.0.1
Actions #2

Updated by Eric Hou about 14 years ago

  • Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon 2.2.0
  • Show in known bugs set to No
Actions #3

Updated by Amber Herold about 14 years ago

  • Deliverable set to 2.2 Bug Reduction
Actions #4

Updated by Amber Herold over 12 years ago

  • Status changed from Assigned to Closed
  • Assignee deleted (Eric Hou)

fixed in r13833

Actions #5

Updated by Neil Voss over 12 years ago

  • Status changed from Closed to New

If you look in the file, line 30, you see:

$appionlibdir = "/ami/sw/leginon/betaleginon/appion/appionlib";
Actions #6

Updated by Amber Herold over 12 years ago

  • Assignee set to Amber Herold

My goodness that is a nasty line of code! Thanks Neil. perhaps trying to work with bronchitis was not the best idea. I'll take care of it this week.

Actions #7

Updated by Amber Herold over 12 years ago

  • Status changed from New to In Code Review
  • Assignee changed from Amber Herold to Anchi Cheng
  • Priority changed from Low to High

I added appionlibdir to the myamiweb config file, still to do - I need to add this to the configuration wizard (#1717).

I modified both postproc.php and hippostproc.php as they have the same code. I also created a function to join paths and created a path class to put it in along with a few other functions that are sprinkled around and needed to be consolidated. Haven't decided if the path class should use DIRECTORY_SEPARATOR everywhere instead of "/". Thoughts?

Actions #8

Updated by Anchi Cheng over 12 years ago

I thought DIRECTORY_SEPARATOR is used in case that the system ( like Windows) uses something other than '/'.

Actions #9

Updated by Amber Herold over 12 years ago

I'm just not sure how DIRECTORY_SEPARATOR is set. Is it based on the web server OS? If we are creating paths that are to be run on a distant processing server, could we be using the wrong separator? Since we only run on Linux does it even matter? I also saw articles saying the separator does not matter anymore b/c windows will handle unix style fine now. Plus we have an entry in the config file for each processing host for what the separator is. So for the cluster class, I am using that value rather than DIRECTORY_SEPARATOR or "/". I think the code is OK as is for now, but I would like to make all the functions in the Path class a bit more uniform, perhaps after the 2.2 release.

Actions #10

Updated by Anchi Cheng about 9 years ago

  • Status changed from In Code Review to Closed
Actions

Also available in: Atom PDF