Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     MAINTAIN does not retrieve cgi variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
MAINTAIN does not retrieve cgi variable
 Login/Join
 
Virtuoso
posted
My maintain has the requirement of retrieving the username from the system.
So I set up my stsem with IIS secure (IWA and Basic checked, anonymous access disabled).
In tomcat I specified the tomcatAuthentication="false".
In the site.wfs I specified:
<sendvar>
FullUser=&REMOTE_USER
JustUser=&WF_REMOTE_USER
<endsendvar>

Restarted everything.
After restart I check with an ad hoc request:
TABLE FILE CAR
"FullUser = &FullUser"
"JustUser = &JustUser"
PRINT CAR MODEL SEATS
BY COUNTRY
END

and it gave me the expected uername with and without domain.
So I modified my maintain with the statement:
Compute mnt_user/a25 = IWC.getAppCGIValue("REMOTE_USER");
And ran it. The result is that my mnt_user variable is empty.
Also tried with the deprecated method IWC.FindAppCGIValue and that one gave me the value of 'null' for the variable requested.
Also tried it with WF_REMOTE_USER, with FullUser, with JustUser. All results just return a blank field.

Anything I'm doing wrong?

Oh, btw, this is release 764.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
Never mind, just found the reason.
It appeared that I had forgotten to switch the development environment from tomcat (8080) to IIS (80). IIS provides the userid, tomcat doesn't.
Problem solved.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
GamP

Normally I would use either GETUSER or CNCTUSR as a reliable way of getting this info.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
make sure you modify the proper site.wfs as well. I made the same mistake when running through the cgi variables in 7.64. Modify in client76\cln\etc\ I couldn't figure out the WF_REMOTE_USER and that was because i didn't configure the client


------------------------
WF 5.33 WF 7.64
Windows 2003 server, Office XP, Apache


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
 
Posts: 76 | Location: Hartford, CT | Registered: August 30, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     MAINTAIN does not retrieve cgi variable

Copyright © 1996-2020 Information Builders