IDM Form redirect to wrong port in OSP

We are running the following versions of IDM Modules:
IDM Apps 4.8.7
FormBuilder 4.8.7

When we try to load a form from Idmdash (trying to load "Helpdesk Ticket Creation Form"), we're redirected to a url with the wrong port
This is the URL it will redirect to: hostname:8444/.../auth
Correct port is 8443 but it is using 8444

In the /opt/netiq/idm/apps/osp/conf/global.properties we have the following config:
com.netiq.idm.osp.url.host = https://hostname:8443

Cannot find the config where port 8444 is comming from.


Any ideas?

Parents
  • 0  

    There are 3 places that need to be checked when there is problem with forms renderer:

    - in ism-configuration.properties check com.netiq.forms.redirect.url and com.netiq.idm.forms.url.host

    - in apps/sites/config.ini check OSPRedirectUrl

    - in apps/sites/ServiceRegistry.json check serviceRegisteries entry

    As Goeffrey mentioned, your misconfiguration is in ism-configuration.properties (most likely com.netiq.forms.redirect.url but also check com.netiq.idm.forms.url.host)

    Kind regards,

    Sebastijan

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to   

    Thanks for you answer.
    When I look in to these settings it seems right to me.

    ism-configuration.properties:
    com.netiq.idm.forms.url.host = https://hostname:8600
    com.netiq.forms.redirect.url = hostname:8600/.../oauth.html

    apps/sites/config.ini
    OSPRedirectUrl=hostname:8600/.../oauth.html

    apps/sites/ServiceRegistry.json
    {"serviceRegisteries":[{"serviceID":"IDM","restUrl":"https://hostname:8443/IDMProv"}]}

  • 0   in reply to 

    This looks OK.

    So either ism-configuration.properties had setting with 8444 at some point, but after change to 8600 idm apps tomcat was not restarted, or something else is doing strange redirect.

    >When we try to load a form from Idmdash (trying to load "Helpdesk Ticket Creation Form"), we're redirected to a url with the wrong port

    >This is the URL it will redirect to: hostname:8444/.../auth

    Can you provide full URL you are redirected to? (without hostname, of course)

    Kind regards,

    Sebastijan

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

Reply
  • 0   in reply to 

    This looks OK.

    So either ism-configuration.properties had setting with 8444 at some point, but after change to 8600 idm apps tomcat was not restarted, or something else is doing strange redirect.

    >When we try to load a form from Idmdash (trying to load "Helpdesk Ticket Creation Form"), we're redirected to a url with the wrong port

    >This is the URL it will redirect to: hostname:8444/.../auth

    Can you provide full URL you are redirected to? (without hostname, of course)

    Kind regards,

    Sebastijan

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

Children
  • 0 in reply to   

    I tried to restart tomcat as well but unfortunately with no luck.

    When I press the HelperDesk Ticket icon it first goes to:
    https://hostname:8600/forms/#/form/details?id=cn%3DHelp-desk%20Request%20Form%2Ccn%3DWorkflowForms%2Ccn%3Dappconfig%2Ccn%3DUser%20Application%20Driver%2Ccn%3Ddriverset1%2Co%3Dsystem&recipient=&pid=cn%3Dhelpdeskticket%2Ccn%3Drequestdefs%2Ccn%3Dappconfig%2Ccn%3Duser%20application%20driver%2Ccn%3Ddriverset1%2Co%3Dsystem&sid=IDM&uri=%2Frest%2Faccess%2Fforms&formContainer=RequestForms&locale=en
    Next request is:
    https://hostname:8444/osp/a/idm/auth/oauth2/auth?redirect_uri=https://hostname:8600/forms/oauth.html&client_id=forms&response_type=code
    And it is return a 404