Cognos Analytics

 View Only
  • 1.  Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Tue September 01, 2020 04:04 PM
    Edited by System Fri January 20, 2023 04:45 PM
    Hi All,

    With Cognos 11.1.7, we are trying to login through URL where Namespace, Username and password are appended. While everything works fine with cognos 11.1.4, we do get different response in Cognos 11.1.7.

    Cognos 11.1.4 - 
    https://<WEBSERVER>/ibmcognos/bi/v1/disp?CAMNamespace=<NAMESPACEID>&CAMUsername=<USERNAME>&CAMPassword=<PASSWORD>

    This URL works perfectly with cognos 11.1.4.

    Cognos 11.1.7:

    https://<WEBSERVER>/ibmcognos/bi/v1/disp?CAMNamespace=<NAMESPACEID>&CAMUsername=<USERNAME>&CAMPassword=<PASSWORD>


    https://<WEBSERVER>/ibmcognos/bi/?CAMNamespace=<NAMESPACEID>&CAMUsername=<USERNAME>&CAMPassword=<PASSWORD>


    Can you please help on this issue?
    Thanks!


    ------------------------------
    Dhanush
    ------------------------------
    #CognosAnalyticswithWatson


  • 2.  RE: Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Wed September 02, 2020 02:24 AM
    Hi,

    Did you try to access https://<WEBSERVER>/ibmcognos/bi/?CAMNamespace=<NAMESPACEID>&CAMUsername=<USERNAME>&CAMPassword=<PASSWORD> instead of https://<WEBSERVER>/ibmcognos/bi/v1/disp....
    This work for me in my 11.1.7

    remove the v1/disp from the URL. not sure if this is a defect in any IIS rules because via Dispatcher URL this work fine

    I created the IIS config with the ..\cgi-bin\templates\IIS\CA_IIS_Config.bat
    Do not use an older one to create the config
    When doing an upgrade, delete the IIS config (https://www.ibm.com/support/pages/node/301009) and run the 11.1.7 script


    ------------------------------
    Torben Schipper
    ------------------------------



  • 3.  RE: Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Wed September 02, 2020 06:45 AM

    Hi Dhanush, 

    It should work fine, just that when there is still a cookie available to the browser, all secondary authentication requests will fail. Try in incognito / inprivate browser mode and you will see what I am saying. /v1/disp endpoint will work in 11.1.7 as well but if you are going to use bi/ endpoint, pls make sure you set the Glass.urlLoginParameters. 

    In Cognos Analytics 11.1.x these advanced parameters can now be added in the portal:

    1. Click Manage > Configuration > System, and select Advanced Settings.
    2. In the key field type: Glass.urlLoginParameters
    3. In the value field type: CAMNamespace,CAMUsername,CAMPassword
    4. Click Apply

    Regards,



    ------------------------------
    Kiran Passumarthi
    www.linkedin.com/in/kiranpassumarthi
    ------------------------------



  • 4.  RE: Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Thu September 03, 2020 04:20 PM
    Hi Torben/Kiran,

    Torben - 
    Thanks for the response.
    We are using IHS 9. The approach you have provided works fine, but only after adding the Glass.urlLoginParameters login parameters. Without this advanced setting, URL login was not working.
    Betweeb, Dispatcher Login is not working, returns with "Invalid Login Response". Have been using the URL -
    http://<COGNOSAPPSERVER>:9300/bi/v1/disp or
    http://<COGNOSAPPSERVER>:9300/p2pd/servlet/dispatch

    Both the URLs are trying to redirect to legacy login, but responds with "Invalid Login Response".

    Can you please let me know whether you have faced this issue from your end?

    Kiran -
    Thanks for suggestion.
    Even with incognito mode, appending v1/disp to the alias/bi does not work without adding Glass.urlLoginParameters.
    Once I add these parameter, the below options works without issue - 
    https://<WEBSERVER>/ibmcognos/bi/?<LOGINPARAMETERS>

    When I try with the URL https://<WEBSERVER>/ibmcognos/bi/v1/disp?<LOGINPARAMETERS>, redirection happens to https://<WEBSERVER>/bi/?, and the page keeps on Spinning without displaying home perspective, though my session with Cognos is created. When I try to open the same URL https://<WEBSERVER>/ibmcognos/bi - in new tab,  I do have valid cognos session.

    Is there any other configuration/Rewrite rule that has to be modified?
    Thanks!  


    ------------------------------
    Dhanush
    ------------------------------



  • 5.  RE: Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Fri September 04, 2020 11:07 AM
    Hi Dhanush, 

    No specific URL rewrites other than what cognos already requires for the webserver are needed. Usually, when we are using the /v1/disp endpoint, we add m_redirect=/alias/bi/ to the query string so that after authentication the request is redirected to this URL; you can try the same and see if that works. 

    Regards

    ------------------------------
    Kiran Passumarthi
    www.linkedin.com/in/kiranpassumarthi
    ------------------------------



  • 6.  RE: Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Fri October 02, 2020 10:08 AM
    Hi Kiran,
    Thanks a lot for your message. Have tried using redirect option, but this doesnt work. The only option we have is to add parameters under Configuration>Advance settings, Unfortunately, we have 100+ cognos environments (SB+PP+PROD), Cognos Administrator is finding it difficult to make these changes manually. Moreover, since we use CJAP, we have disabled the login screen, prompting the user to enter Username/Password.
    Please let me know if you have any other ways to login or update these parameters.

    Thanks!

    ------------------------------
    Dhanush
    ------------------------------



  • 7.  RE: Cognos 11.1.7 - Parametrized URL login - Response Status code - 441

    Posted Mon October 05, 2020 04:58 AM
    Hi Dhanush, 

    Not sure why m_redirect isn't working for you with /bi/v1disp endpoint because it works for us in our current production in CA 11.0.11 as well as our test environment which is in 11.1.7. If you can reply to me privately and share the URL you are using, maybe I can find something. 

    Regards
    Kiran

    ------------------------------
    Kiran Passumarthi
    www.linkedin.com/in/kiranpassumarthi
    ------------------------------