Focal Point
[SOLVED] Issues with WFServlet and WF_signon in WebFOCUS 8

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6747015076

May 07, 2014, 11:30 AM
Tim Easley
[SOLVED] Issues with WFServlet and WF_signon in WebFOCUS 8
I have a website that allows the user to run reports after a successful authentication using the following form:


form name="frmAuthenticate" action="http://webfocusservername/ibi_apps/WFServlet">
input type="hidden" name="IBIWF_action" value="WF_SIGNON"/>
input type="hidden" name="IBIC_user" value="xxxxxxxx"/>
input type="hidden" name="IBIC_pass" value="xxxxxxxx"/>
input name="Submit1" type="submit" value="Authenticate" />

Currently this works fine on my WebFOCUS 7.7 server. But when I change the URL to my WebFOCUS 8 server I get the following message at the bottom of the browser:

"Do you want to open or save WFServlet (334 KB) from webfocusservername? Open Save Cancel"

The 7.7 server is on Win2003, the v8 server is on Win2008, both using IIS/Tomcat.
Both servers use LDAP authentication and it works correctly on the v8 server.

This message has been edited. Last edited by: <Kathryn Henning>,
May 09, 2014, 05:22 PM
<Kathryn Henning>
Hi All,

Tim has a case open with Support for this issue, and it is being researched.

Cheers!

Kathryn
June 04, 2014, 01:21 PM
Tim Easley
Support did not help and they closed the case.

This is a new installation of 8006.

I believe this is an IIS/Tomcat configuration issue. Requesting anything with a URL beginning http://localhost:8080/ibi_apps results in a message as follows:

Do you want to Save or Open?

The same URL works fine on an existing 8006 server.

I've checked the following and appear to be the same on both servers:

ibi_apps.xml
uriworkermap.properties
June 10, 2014, 04:13 PM
Tim Easley
We solved part of this problem. Our server support team had hijacked port 8080 to do some troubleshooting and had not yet reversed their changes. However, the following problem still exists:

When I use a form (in asp or aspx) to perform a WF_SIGNON I get the following error:

405 - HTTP verb used to access this page is not allowed.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

This code works on other WIN2008/WebFOCUS v8 servers:

 

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<script language="javascript">
<!--
function submit_form() {
document.frmTheSource.submit();
}
//-->
</script>
</head>
<body onload="submit_form()">
<form name="frmTheSource" action=http://webfocusprod03.transamerica.com/ibi_apps/WFServlet method="POST">
<input type="hidden" name="IBIWF_action" value="WF_SIGNON">
<input type="hidden" name="IBIC_user" value="<%=Application("WF_USER")%>">
<input type="hidden" name="IBIC_pass" value="<%=Application("WF_PASS")%>">
<input type="hidden" name="WF_SIGNON_MESSAGE" value="http://thesourcedev/test.htm">
</form>
</body>
</html>


June 10, 2014, 04:44 PM
J
Don't you need quotes around your action URL?


WebFOCUS 7.7.03/8.0.08
Dev Studio 7.7.03/8.0.08
App Studio 8.0.08
Windows 7
ALL Outputs
June 11, 2014, 02:48 AM
Tony A
You would normally get this because the web server is not set-up to allow POST or GET methods - not WebFOCUS but IIS or Websphere etc.

If your server support team hijacked port 8080 then what else have they done?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 16, 2014, 12:21 PM
Tim Easley
quote:
Originally posted by J:
Don't you need quotes around your action URL?

Thanks for your reply, with or without quotes get the same results.
June 25, 2014, 11:09 AM
mcatala
I have a similar page and am getting a similar response. Here is what I get back:
  <?xml version="1.0" encoding="UTF-8" standalone="no" ?> 
  <ibfsrpc _jt="IBFSResponseObject" language="EN" name="WF_SIGNON" returncode="99" returndesc="Authentication failure: Userid or Password is incorrect" subreturncode="0" subsystem="" type="simple" /> 

July 29, 2014, 04:07 PM
Tim Easley
Mcatala, thanks for your reply, my results are identical to the response you posted above. I have an SE scheduled to be onsite 8/11/2014. I will repost if we get anywhere.
August 12, 2014, 05:49 PM
Tim Easley
OK, problem solved. Apparently in version 8 you are required to specify the .ibfs file extension as follows:

http://servername/ibi_apps/WFServlet.ibfs

instead of

http://servername/ibi_apps/WFServlet

We found that the /ibi_html/wfsignon.html page worked. I dug through the code and found the ibigblgetCgiPath() function returns "/ibi_apps/WFServlet.ibfs" so I modified my .asp code with the .ibfs extension and it works now.

It looks like WFServlet without the extension only works pre-v8.