Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-527

data-source for default derby maildb is configured with a relative path

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 3.0.0
    • Fix Version/s: 2.3.0
    • Component/s: James Core
    • Labels:
      None
    • Environment:
      tested on windows, jre 1.5

      Description

      Data source is configured with a relative path in config.xml:

      <dburl>jdbc:derby:../apps/james/var/derbydb;create=true</dburl>

      The path is relative to the current directory when starting james. Calling run from the bin folder is allright. Calling it from James root directory bin\run.bat causes the db to be created in the uplevel directory.

      Possible solutions:

      • add a "cd PHOENIX_HOME" in start scripts
      • evaluate the PHOENIX_HOME enviroment variable in James

        Activity

        Hide
        norman Norman Maurer added a comment -

        Now we change to $PHOENIX_HOME/bin before start james. This seems to me a better solution then use getProperties() at the moment. Anyway we should maybe change the config for not using a relative path on derby configuration.

        Show
        norman Norman Maurer added a comment - Now we change to $PHOENIX_HOME/bin before start james. This seems to me a better solution then use getProperties() at the moment. Anyway we should maybe change the config for not using a relative path on derby configuration.
        Hide
        bago Stefano Bagnara added a comment -

        Still there in Windows.

        Show
        bago Stefano Bagnara added a comment - Still there in Windows.
        Hide
        joachimdraeger Joachim Draeger added a comment -

        Other directories in var don't seem to be accessed by a relative path, how is it managed there?
        Although the cd fix is okay for now it is IMHO odd to use relative path in the James enviroment by default.

        What do you think?

        • reopen as improvement?
        • create new?
        • it's okay the way it is?
        Show
        joachimdraeger Joachim Draeger added a comment - Other directories in var don't seem to be accessed by a relative path, how is it managed there? Although the cd fix is okay for now it is IMHO odd to use relative path in the James enviroment by default. What do you think? reopen as improvement? create new? it's okay the way it is?
        Hide
        danny@apache.org Danny Angus added a comment -

        Closing issue fixed in released version.

        Show
        danny@apache.org Danny Angus added a comment - Closing issue fixed in released version.

          People

          • Assignee:
            norman Norman Maurer
            Reporter:
            joachimdraeger Joachim Draeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development