Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1768

Determine if we can use absolute URL as uri

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:

      Description

      Currently Apps are distributed from a single physical directory under http://bioviz.org/igbserver/.

      IGB is able to list them in its internal App Manager GUI because it reads this file on start-up: http://bioviz.org/igbserver/repository.xml
      When a user installs an App, IGB just downloads from the location indicated in http://bioviz.org/igbserver/repository.xml.

      The file repository.xml lists our five currently available Apps as "resource" tags. For each App it lists a relative URL. For example:

      resource:

      • id="23andMe-snp-converter/9.0.0"
      • symbolicname="23andMe-snp-converter"
      • presentationname="23andMe SNP Converter"
      • uri="optional/23andMe-snp-converter-9.0.0.jar"
      • version="9.0.0"

      Find out: can a "uri" attribute point to an absolute URL instead?

      For example:

      resource:

      • id="IgbApp/0.0.1"
      • symbolicname="testapp"
      • presentationname="A Test App"
      • uri="https://example.com/jars/23andMe-snp-converter-9.0.0.jar"
      • version="9.0.0"

      This matters because it would be very useful to be able to store assets in S3 or other places separately from the repository.xml file.

      This task is to determine if we can do that.

      Be sure to describe the steps you took to determine if we can do it or not.

        Attachments

          Activity

          Hide
          aloraine Ann Loraine added a comment -

          Might be helpful to set up a proof-of-concept example.

          Show
          aloraine Ann Loraine added a comment - Might be helpful to set up a proof-of-concept example.
          Hide
          svallapu Sai Charan Reddy Vallapureddy added a comment - - edited

          Ann Loraine

          Yes, It is possible to use URL in the URI field.

          I replaced uri='optional/protannot-9.0.0.jar' with uri='http://bioviz.org/igbserver/optional/protannot-8.4.1.jar'. It worked and installed the app.

          To use s3 bucket files.
          1. Right click on the file in the S3 bucket and click on 'Make Public'
          2. Open the file and at the bottom of the page copy 'Object URL' (example: https://testappstore-media-0000.s3.amazonaws.com/media/mergeannotationtrackoperator/releases/9.0.0/test.jar)
          3. In repository.xml, replace uri='optional/protannot-9.0.0.jar' with uri='https://testappstore-media-0000.s3.amazonaws.com/media/mergeannotationtrackoperator/releases/9.0.0/test.jar'
          4. Disable the repository in the app manager to remove previous xml file.
          5. Re-enable the repository in the app manager to get the updated xml file.

          Show
          svallapu Sai Charan Reddy Vallapureddy added a comment - - edited Ann Loraine Yes, It is possible to use URL in the URI field. I replaced uri='optional/protannot-9.0.0.jar' with uri='http://bioviz.org/igbserver/optional/protannot-8.4.1.jar'. It worked and installed the app. To use s3 bucket files. 1. Right click on the file in the S3 bucket and click on 'Make Public' 2. Open the file and at the bottom of the page copy 'Object URL' (example: https://testappstore-media-0000.s3.amazonaws.com/media/mergeannotationtrackoperator/releases/9.0.0/test.jar ) 3. In repository.xml, replace uri='optional/protannot-9.0.0.jar' with uri='https://testappstore-media-0000.s3.amazonaws.com/media/mergeannotationtrackoperator/releases/9.0.0/test.jar' 4. Disable the repository in the app manager to remove previous xml file. 5. Re-enable the repository in the app manager to get the updated xml file.

            People

            • Assignee:
              svallapu Sai Charan Reddy Vallapureddy
              Reporter:
              aloraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: