Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-2829

env vars from files arent being trimmed

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.5.31
    • None
    • None
    • None

    Description

      Josh O'Dowd 1:18 PM
      I am having an odd issue in 2.5.29 using a GROUPER_DATABASE_URL_FILE variable. Interestingly, if I put the url value(jdbc:postgresql://ourhost.umt.edu/iamgroupertest) directly into the GROUPER_DATABASE_URL variable instead, hibernate connects just fine. However if I put that same URL into a file and use the *_FILE variable, I am getting a hibernate error that the "iamgroupertest" database doesn't exist?
      Seems like grouper is reading the file just fine, but somehow the database portion of the URL is unacceptable... WIERD!

      Josh O'Dowd 1:36 PM
      Turns out hibernate is failing to connect for the other values (username, password) if they are in a file, as well. I know grouper is reading the file because the error clearly states the value from the file, as part of the error message. i.e., 'org.postgresql.util.PSQLException: FATAL: password authentication failed for user "iamgroupertest"'. Not sure what to think here...

      1 reply
      Today at 2:33 PMView thread

       

      it works for me if you dont have newlines in your files.  do something like:printf something > someFile.txtthen try, for all four files.  i will fix that in #30

       

       

       

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: