Trusted server can't be set

Options

I have installed AppWorks Gateway 1.1.6 and am trying to connect it to a Content Server 10.5 system running OTDS 10.5. The Content Server URL is set correctly in OTAG and tests OK. However whenever I attempt set up the Trusted Server relationship to CS, it seems to silently fail. I generate the key, and click Add New, and am immediately thrown back to the OTAG login page. When I log back in and return to the Trusted Servers page, my change has not been saved.

All other non Content Server related OTAG functions seem to work fine - I have installed the ECM Everywhere bundle and the Help application works from on my iPad, for instance.

Localhost access log from server:
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:22 +0800] "POST /gateway/v1/auth HTTP/1.1" 200 225
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:22 +0800] "GET /gateway/v2/apps/insight?otagtoken=4f8811bd-008c-4dd1-aad3-0db308f6dd88&cstoken=null&=1400126002243 HTTP/1.1" 404 967
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:22 +0800] "GET /gateway/v1/settings?appName=otag&otagtoken=4f8811bd-008c-4dd1-aad3-0db308f6dd88&cstoken=null&
=1400126002241 HTTP/1.1" 200 6711
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:22 +0800] "GET /gateway/v1/notifications?clientID=bc0b38ae-1cb5-4b9d-9432-1e60e0905781&backchannel_id=bc0b38ae-1cb5-4b9d-9432-1e60e0905781--bc30605&since=-1&nocache=1400126002271 HTTP/1.1" 200 67
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:23 +0800] "GET /gateway/v1/providers?otagtoken=4f8811bd-008c-4dd1-aad3-0db308f6dd88&cstoken=null&=1400126003532 HTTP/1.1" 200 12
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "PUT /gateway/v1/providers/ContentServer?key=9df178e8aa599ea672a903b0cf368d6afcb99bb2f02fb050&otagtoken=4f8811bd-008c-4dd1-aad3-0db308f6dd88&cstoken=null HTTP/1.1" 401 975
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/ HTTP/1.1" 200 55897
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/css/bootstrap/css/bootstrap.min.css HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/css/jquery.fileupload-ui.css HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/css/signin.css HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/css/otag.css HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/jquery.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/jquery.jsperanto.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/json2.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/ua-parser.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/jquery-ui.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/css/bootstrap/js/bootstrap.min.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/vendor/jquery.ui.widget.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/jquery.iframe-transport.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/jquery.fileupload.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/utils.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/localize.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/settings.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/events.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/request.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/startup.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/install.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/clients.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/userman.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/backchannel.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/Placeholders.min.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/js/apps.js HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/gridbg.png HTTP/1.1" 304 -
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/locales/en-AU.json HTTP/1.1" 404 1003
0:0:0:0:0:0:0:1 - - [15/May/2014:11:53:30 +0800] "GET /gateway/v1/status?otagtoken=4f8811bd-008c-4dd1-aad3-0db308f6dd88&cstoken=null&
=1400126010758 HTTP/1.1" 200 52

Catalina log from server
May 15, 2014 11:53:22 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
WARNING: A servlet request, to the URI http://localhost:8080/gateway/v1/auth, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

Comments

  • I found the solution - I had to use the Tempo Box installation guide which contained an important step missing from the ECM Everywhere install guide -

    19 Sign in to the OpenText AppWorks Gateway as a user who has admin
    permissions on Content Server.

    I had to give my otag@otag use access to Content Server in OTDS.

    This step should be included in the OT Everywhere install guide too! There seems to be quite a bit of information missing from the Everywhere documentation, where it references developer.opentext.com etc, sometimes without even a direct link to the information it suggests you follow.

  • I had the same problem and Anthonys answer helped my. For those who don't want to look at the Tempo Box installation guide, here the steps:

    Locate the "GlobalNamingResources" section and add the following:

    <GlobalNamingResources>
      <Resource name="UserDatabase" auth="Container"
                type="org.apache.catalina.UserDatabase"
                description="User database that can be updated and saved"
                factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                pathname="conf/tomcat-users.xml" />
      <Resource auth="Container" factory="com.opentext.otag.auth.CSIdentityServiceFactory"   
               name="otag/IdentityService"
               type="com.opentext.otag.auth.IdentityService"/>
    </GlobalNamingResources>
    
  • Good day

    I am installed Tempo Box 10.5.20 and came across this issue when saving the token key. I then added the <Resource...above and still not working.

    How do i proceed.

    Note: I am not using OTDS but CS Auth.