This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 7, 2012, 3:39 PM
2 Posts

Xpages URL Redirection 403 error

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer,Administrator
  • Tags: error with Login in URL
  • Replies: 4

We have an application written in xPages for our supplier. The first xpages is written to redirect to another xpages.
Users can access with a generic id, the redirection to the xpage works fine or users have their own id.


http://myserver/myapplication.nsf/xSCARRedirect.xsp?Login= supplieremailaddress&SecurityToken=xxxxxxxxxxxxxxxxxxxxx&CompanyID=xxxxxx
In that case, it works for some login name and not for others.

After several tests, we found that it is working only for Login less than 23 characters.
Also in all cases, it works if i change the parameter "Login=" to "UserID" or "LoginName=" or everything other than 'Login'
Is the "Login" parameter a reserved word ?

We have also seen an error 403 in the browser.
Do you have any other advice on what could be the problem
Jun 7, 2012, 5:29 PM
135 Posts
Re: Xpages URL Redirection 403 error
I just learned about reserved words in URL parameters (another very strange behavior in XPages!) a few days ago . I'm not sure if they are documented somewhere but when using reserved words you'll need to get the URL parameter the hard way, using:
 
facesContext.getExternalContext().getRequest().getQueryString();
 
and parse from there. Here is an article about this:
 
 
It's interesting though that the problem occurred only with longer parameters.
 
Anyway it might be better to use scope variables, in this case requestScope or sessionScope.
 
HTTP 403 sounds like the user does not have access to the XPage or some resource the page is referring to.  
 
- Panu 
  
 
 
Jun 8, 2012, 7:45 AM
2 Posts
Re: Xpages URL Redirection 403 error
Thanks for your reply Panu,
 
It is strange that it is only for long string , but also in our development server, it is working fine with that Login . They have  both version 8.5.3 , the only difference , is that one is accessible only in our domain , and the other from outside.
Jun 8, 2012, 8:00 AM
135 Posts
Re: Xpages URL Redirection 403 error
Now that I thought about it I believe the reserved parameters should not really be used. For example Login means for Domino that anonymous user will be prompted for login (of course this should only be meaningful if the db has anonymous access). Another one that Domino uses is SessionID. It could be that the Login URL param is somehow confusing Domino and causing the 403 error. I would change at least that.
Jun 12, 2012, 11:31 AM
15 Posts
Re: Xpages URL Redirection 403 error
The ID that was used to create or sign the XPage you are attempting to access may not have
sufficient rights on the server.

Ensure that the XPage is signed by an ID that, depending on the level of access that you want this user to have, is listed in either the "Sign or run unrestricted methods and operations" or "Sign agents or XPages to run on behalf of the invoker" fields (Server Document --> Security tab).

One way to test to see if insufficient rights may be causing the problem is to sign the XPages generating the error with the server's ID. The server ID should have "Sign or run unrestricted methods and operations" rights by default (with no entry in the Server Document).

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal