Posted by
smaran on
Mar 07, 2011; 10:36am
URL: https://discuss.orbeon.com/p-param-type-input-name-instance-tp3338458p3338675.html
Hi All,
Please see the log below
/orbeon-PE/fr/orbeon/builder/summary
/orbeon-PE/config/theme/orbeon.css
/orbeon-PE/config/smaran/orbeon-logo-trimmed-transparent-60.png
/orbeon-PE/config/theme/images/tab-shadow-top.png
/orbeon-PE/config/theme/images/tab-shadow-left.png
/orbeon-PE/config/theme/images/tabbar-blue.png
/orbeon-PE/j_security_check
/orbeon-PE/fr/service/i18n/fr-resources/orbeon/builder
/orbeon-PE/fr/service/resource/crud/orbeon/builder/form/form.xhtml
/orbeon-PE/fr/service/oracle/search/orbeon/builder
/orbeon-PE/fr/orbeon/builder/summary
/orbeon-PE/apps/fr/style/orbeon-logo-trimmed-transparent-30.png
/orbeon-PE/xforms-server/dynamic/90e91d56c69f3934d8bd91e135d91746
/orbeon-PE/xforms-server
/orbeon-PE/fr/service/resource/crud/orbeon/builder/form/form.xhtml
/orbeon-PE/apps/fr/style/orbeon-logo-trimmed-transparent-30.png
/orbeon-PE/xforms-server/dynamic/90e91d56c69f3934d8bd91e135d91746
/orbeon-PE/fr/orbeon/builder/new
127.0.0.1 - - [07/Mar/2011:16:03:10 +0530] "GET /orbeon-PE/ HTTP/1.1" 302 -
127.0.0.1 - - [07/Mar/2011:16:03:10 +0530] "GET /orbeon-PE/home/ HTTP/1.1" 200 5708
127.0.0.1 - - [07/Mar/2011:16:03:12 +0530] "GET /orbeon-PE/fr/orbeon/builder/summary HTTP/1.1" 200 8037
127.0.0.1 - - [07/Mar/2011:16:03:15 +0530] "POST /orbeon-PE/j_security_check HTTP/1.1" 302 -
127.0.0.1 - a [07/Mar/2011:16:03:19 +0530] "GET /orbeon-PE/fr/service/i18n/fr-resources/orbeon/builder HTTP/1.1" 200 42809
127.0.0.1 - a [07/Mar/2011:16:03:19 +0530] "GET /orbeon-PE/fr/service/resource/crud/orbeon/builder/form/form.xhtml HTTP/1.1" 200 88847
127.0.0.1 - a [07/Mar/2011:16:03:20 +0530] "POST /orbeon-PE/fr/service/oracle/search/orbeon/builder HTTP/1.1" 200 1614
127.0.0.1 - a [07/Mar/2011:16:03:22 +0530] "GET /orbeon-PE/fr/orbeon/builder/summary HTTP/1.1" 200 84117
127.0.0.1 - - [07/Mar/2011:16:03:22 +0530] "GET /orbeon-PE/apps/fr/style/orbeon-logo-trimmed-transparent-30.png HTTP/1.1" 200 78006
127.0.0.1 - a [07/Mar/2011:16:03:22 +0530] "GET /orbeon-PE/xforms-server/dynamic/90e91d56c69f3934d8bd91e135d91746 HTTP/1.1" 200 78006
127.0.0.1 - a [07/Mar/2011:16:03:54 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 240
127.0.0.1 - a [07/Mar/2011:16:03:54 +0530] "GET /orbeon-PE/fr/service/resource/crud/orbeon/builder/form/form.xhtml HTTP/1.1" 200 88847
127.0.0.1 - - [07/Mar/2011:16:03:57 +0530] "GET /orbeon-PE/apps/fr/style/orbeon-logo-trimmed-transparent-30.png HTTP/1.1" 200 78006
127.0.0.1 - a [07/Mar/2011:16:03:57 +0530] "GET /orbeon-PE/xforms-server/dynamic/90e91d56c69f3934d8bd91e135d91746 HTTP/1.1" 200 78006
127.0.0.1 - a [07/Mar/2011:16:03:57 +0530] "GET /orbeon-PE/fr/orbeon/builder/new HTTP/1.1" 200 199188
127.0.0.1 - a [07/Mar/2011:16:04:01 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 349
127.0.0.1 - a [07/Mar/2011:16:04:02 +0530] "GET /orbeon-PE/fr/service/oracle/crud/orbeon/library/form/form.xhtml HTTP/1.1" 200 -
127.0.0.1 - a [07/Mar/2011:16:04:02 +0530] "GET /orbeon-PE/fr/service/oracle/crud/ds/library/form/form.xhtml HTTP/1.1" 200 -
127.0.0.1 - a [07/Mar/2011:16:04:02 +0530] "GET /orbeon-PE/fr/service/custom/orbeon/builder/toolbox?application=ds HTTP/1.1" 200 97447
127.0.0.1 - a [07/Mar/2011:16:04:02 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 18784
127.0.0.1 - a [07/Mar/2011:16:04:07 +0530] "PUT /orbeon-PE/fr/service/oracle/crud/orbeon/builder/data/a71668ddc7b3cfcad19eed59952fabc6/data.xml HTTP/1.1" 200 590
127.0.0.1 - a [07/Mar/2011:16:04:07 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 1378
127.0.0.1 - a [07/Mar/2011:16:04:08 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 261
127.0.0.1 - a [07/Mar/2011:16:04:10 +0530] "PUT /orbeon-PE/fr/service/oracle/crud/ds/dsds/form/form.xhtml HTTP/1.1" 200 590
127.0.0.1 - a [07/Mar/2011:16:04:10 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 386
127.0.0.1 - a [07/Mar/2011:16:04:12 +0530] "POST /orbeon-PE/xforms-server HTTP/1.1" 200 243
Not sure whts the problem
Regards,
Smaran
-----Original Message-----
From: Florian Schmitt [mailto:
[hidden email]]
Sent: Monday, March 07, 2011 3:38 PM
To:
[hidden email]
Subject: [ops-users] Re: RE: Re: <p:param type="input" name="instance"/>
Smaran,
> Can you tell me
> <xforms:action if="xxforms:property('oxf.fr.authentication.method') = 'container'">
> <!-- Case where we get the username and roles from the container -->
> <xforms:setvalue ref="instance('fr-authentication-headers')/header[@name = 'username']/@value" value="xxforms:get-remote-user()"/>
> <xforms:message level="xxforms:log-debug">Roles: <xforms:output value="xxforms:property('oxf.fr.authentication.container.roles')"/></xforms:message>
> <xforms:action xxforms:iterate="tokenize(xxforms:property('oxf.fr.authentication.container.roles'), '\s+')">
> <xxforms:variable name="role" select="."/>
> <xforms:action if="xxforms:is-user-in-role($role)">
> <xforms:setvalue ref="instance('fr-authentication-headers')/header[@name = 'roles']/@value" value="if (. = '') then $role else concat(., ' ', $role)"/>
> </xforms:action>
> </xforms:action>
> </xforms:action>
>
>
> From where the username its expecting
i suppose the important line is
<xforms:setvalue ref="instance('fr-authentication-headers')/header[@name
= 'username']/@value" value="xxforms:get-remote-user()"/>
It tries to determine the user using the function xxforms:get-remote-user(). (1)
If the function doesn't return a user name, it's most likely that the request doesn't contain authentication data, maybe because the requested resource didn't require authentication. So, to narrow down the problem i would start with the tomcat configuration - is authentication set up correctly, does the request fail if no authentication information is given? Using, for example, an AccessLogValve (2) could be useful to determine if a remote user was authenticated (using u%).
HTH
florian
(1)
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-xpath-functions#TOC-xxforms:get-remote-user-(2)
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access_Log_ValvePlease do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws