Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-599

ImageManipulation service fails with FeSL enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 3.x trunk
    • Fix Version/s: Fedora 3.3
    • Labels:
      None
    • Environment:
      Mac OS X 10.6, Java5

      Description

      Integration tests which use the imagemanip service fail when FeSL is enabled. Call to the imagemanip service hang until eventually timing out.

      With FeSL enabled, an individual request to
      http://localhost:8080/imagemanip/ImageManipulation?op=resize&newWidth=50&url=http://localhost:8080/tomcat.gif
      hangs and eventually times out.

      Workarounds for imagemanip:
      - remove fedora.war
      - disable fesl
      - comment out calls to PopulatePolicyDatabase.addDocuments(); and pdp = new PDP(config.getDefaultPDPConfig()); in MelcoePDPImpl

        Attachments

          Activity

          Show
          eddie Edwin Shin added a comment - Also see: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ and the mailing list discussion: http://thread.gmane.org/gmane.comp.cms.fedora-commons.devel/1510
          Hide
          kstrnad Kai St [X] (Inactive) added a comment -

          On the Fedora side the following happens:
          FedoraClient.getAPIM() calls FedoraClient.getSOAPStub() which calls APIAStubFactory.getStubAltPath(). Here a check Administrator.INSTANCE == null occurs which initializes the static variables of the Administrator class. Some of them happen to be AWT based, so X (or headless) is needed which can clearly be seen by the "focus stealing" effect on OSX.

          Show
          kstrnad Kai St [X] (Inactive) added a comment - On the Fedora side the following happens: FedoraClient.getAPIM() calls FedoraClient.getSOAPStub() which calls APIAStubFactory.getStubAltPath(). Here a check Administrator.INSTANCE == null occurs which initializes the static variables of the Administrator class. Some of them happen to be AWT based, so X (or headless) is needed which can clearly be seen by the "focus stealing" effect on OSX.
          Hide
          cwilper Chris Wilper added a comment -

          Kai, I've added your comment to FCREPO-601, which I spun off of this to deal with the focus-stealing problem.

          Show
          cwilper Chris Wilper added a comment - Kai, I've added your comment to FCREPO-601 , which I spun off of this to deal with the focus-stealing problem.

            People

            • Assignee:
              eddie Edwin Shin
              Reporter:
              eddie Edwin Shin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: