Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-2838

It's not possible to use the cmisatom CMIS binding behind a reverse proxy

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2
    • Component/s: CMIS
    • Labels:
      None
    • Environment:
      Alfresco 4.1.1, Android mobile app 1.0

      Description

      The CMIS discovery document returns absolute template URLs that have to be used to navigate the repository and retrieve node information.

      By default the hostname of the server is returned in the URLs, if the server is behind a proxy the hostname needs to be configured to return the publicly accessible hostname.

      For the webscript based CMIS implementation this was possible by placing a "spring-webscripts-config-custom.xml" config file in <tomcat>/shared/classes/META-INF

      It appears the same thing is not possible for the /cmisatom entry point as it uses a separate servlet and not the webscript engine.

      A solution has been implemented [1] for Cloud as this entry point is used there and obviously the Cloud sits behind a proxy or two!

      This solution needs to be merged to the 4.x codeline ASAP as currently no one with this configuration can use the Android App against a 4.x server!

      [1] The following config can be used on Cloud:

      1. The servlet path, context path and server can all be selectively overridden
        opencmis.context.override=true
        opencmis.context.value=
      2. if true, the servlet path of OpenCMIS generated urls will be set to "opencmis.servletpath.value", otherwise it will be taken from the request url
        opencmis.servletpath.override=true
        opencmis.servletpath.value=
        opencmis.server.override=true
        opencmis.server.value=https://<my.public.alfresco.hostname>

        Attachments

        1. ALF-17109.diff
          6 kB
        2. cmis
          32 kB
        3. cmisatom
          28 kB
        4. mnt -2838.png
          mnt -2838.png
          60 kB
        5. mod_proxy.conf
          0.5 kB
        6. server.xml.proxy
          7 kB
        7. server.xml.without
          7 kB
        8. ssl.conf
          0.7 kB

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs (Inactive)
                Reporter:
                gcornwell Gavin Cornwell
              • Votes:
                1 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 7 hours
                  1d 7h

                    Structure Helper Panel