<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>bridges-dev@portals.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/</id>
<updated>2009-12-08T01:29:11Z</updated>
<entry>
<title>Re: Struts and Declarative Security in Portals</title>
<author><name>Ate Douma &lt;ate@douma.nu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200911.mbox/%3c4AF88B12.7080802@douma.nu%3e"/>
<id>urn:uuid:%3c4AF88B12-7080802@douma-nu%3e</id>
<updated>2009-11-09T21:35:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Fernando,

Sorry for the somewhat late response but last week I was at the ApacheCon and had more pressing
tasks at the time.
I'm also cross-posting this to the Struts dev@ list for the Struts 2 Portlet developers who
might be interested.

Further comments below.

Regards,

Ate

fernando@lozano.eti.br wrote:
&gt; Hi there,
&gt; 
&gt; 
&gt; I started this on the Apache Portals Bridges mailing list but had no replies so far.
I have already
&gt; submitted a patch and an opened a ticket on Apache JIRA (PB-93) and hope someone here
can provide
&gt; feedback on my approach to the problem, maybe even expedite it's inclusion on a new release
from
&gt; Apache Portals.
&gt; 
&gt; It's related to Struts 1.x (is it still in active development, or at least supported?)
but maybe the
&gt; issues are present also in Struts 2 -- I had a similar issue with JSF and found the problem
was not
&gt; considered either by the MyFaces developers, MyFaces Portlet Bridge developers, or the
JSR-301 and
&gt; JSR-286 expert groups.

This issue was brought forward on (at least) the JSR-301 EG but AFAIK not yet on the JSR-286
EG (I'm an expert member on both).
I already responded on this on the JSR-301 EG, but I'll leave it up to the specification lead
if/when/what to reply.
My comments below however are similar to those I provided there.

&gt; 
&gt; I'd also appreciate If someone can comment on the same issues regarding declarative security
and
&gt; Struts 2.
&gt; 
&gt; Here's the original, yet unanswered message from the apache portals bridges mailing list:
&gt; 
&gt; ----------------------
&gt; I some issues with Java EE declarative security and Struts 1.x Portlets, and a patch
that solves
&gt; some of them. I just wish feedback from users and developers on those issues and my ideas
about them
&gt; before opening a JIRA ticket abd submiting my patch.
&gt; 
&gt; Althouth some developers perfer to ignore Java EE security completely, and use either
Acegi or some
&gt; in-house (in-)security solution, if you do use Struts or JSF you can leverage standard
declarative
&gt; security with ease.
&gt; 
&gt; But, when you move from from servlets to portlets, you give up all declarative security
features,
&gt; that is, web.xml &lt;security-constraints&gt; become noops. It's not so bad with Struts,
where you can
&gt; still use roles in action mappings, but with JSF and plain servlet development you nave
no option
&gt; but hand coded programatic security. :-(
&gt; 
&gt; I understand portlets don't have URI so at first you would not have away to implement
declarative
&gt; security for portlets. Actually, most frameworks use a navigation parameter (navigational
state) to
&gt; emulate request URLs -- This is the case with both the standard JSF portelt bridge and
the Apache
&gt; Portals struts portlet bridige from apache portals. So it would be feasible for a portlet
bridge to
&gt; read &lt;security-constraints&gt; from web.xml and emulate their working as if in a servlet
container.
&gt; 
&gt; In the general case, there could be a &lt;security-contraint&gt; inside portlet.xml with
subelements as
&gt; &lt;parameter-name&gt; and &lt;parameter-value&gt; to replace &lt;uri-pattern&gt; from
web.xml, and the portlet
&gt; container could enforce declarative security access control using the navigational context.
&gt; 
&gt; I don't believe I was the first to think about this but I think this is a big omission
from all JSRs
&gt; related to portlet development under Java EE. :-( 
&gt; 
&gt; Another, but related, issue: back to JSF (and also struts) in a servlet container we
would use a
&gt; web.xml &lt;error-page&gt; element for &lt;error-code&gt; 403 to display a user-friendly
"access denied" page.
&gt; 
&gt; We also loose this capability inside a portlet container, but that's another thing a
portlet bridge
&gt; could emulate with ease. And that's another thing we could have properly implemented
in portlet.xml,
&gt; maybe as an exception handler so portlets don't get configured for http error codes.
&gt; 
&gt; So there are actually two issues:
&gt; 
&gt; 1. Enforcing declarative security access controls inside a portlet container -- Struts
already
&gt; solves that using &lt;action-mapping&gt; roles attribute, which is compatible with both
servlet and
&gt; portlet containers;
&gt; 
&gt; 2. Dsiplaying an user-friendly error page, which in a servelt container is done by the
container
&gt; itself but not by a portlet container, and neither Struts nor the Apache Portals Portlet
Bridge
&gt; provide an alternative.

First of all, a &lt;security-contraint&gt; or something like an exception handler in portlet.xml
as mentioned above is not possible with the
portlet 2.0 (or 1.0) specification which strictly defines the portlet.xml structure.
This doesn't mean such features cannot be supported in a future portlet spec, but currently
this is impossible without using portlet
container specific descriptors (e.g. vendor extensions).

However, in response to your question as it reached the JSR-301 EG, I proposed a generic (so
not Struts or other framework specific)
solution using a JSR-286 (Portlet 2.0) PortletFilter which might provide the same or similar
behavior as the servlet container.

Such a PortletFilter can do portlet request pre-processing during which it can enforce security-constraints
as well as error-pages
definitions configured either for the PortletFilter specific or possibly dynamically read
(during startup) from the accompanying web.xml

As you mentioned, portlet bridges for Struts, JSF and likewise frameworks almost all use a
predefined (render)request parameter defining the
current or target application "URL". A properly configured PortletFilter therefore could do
portlet request security pre-processing by
inspecting the current value of such parameter and enforce security constraints and if need
be error-page handling as well.

A quick (untested) portlet.xml configuration example I gave on the JSR-301 EG could be:

   &lt;filter&gt;
     &lt;filter-name&gt;DeclaritivePathSecurityFilter&lt;/filter-name&gt;
     &lt;filter-class&gt;com.acme.security.DeclaritivePathSecurityFilter&lt;/filter-class&gt;
     &lt;lifecycle&gt;ACTION_PHASE&lt;/lifecycle&gt;
     &lt;lifecycle&gt;EVENT_PHASE&lt;/lifecycle&gt;
     &lt;lifecycle&gt;RENDER_PHASE&lt;/lifecycle&gt;
     &lt;lifecycle&gt;RESOURCE_PHASE&lt;/lifecycle&gt;
     &lt;init-param&gt;
       &lt;name&gt;pathParameterName&lt;/name&gt;
       &lt;value&gt;myPathParameterName&lt;/value&gt;
     &lt;/init-param&gt;
     &lt;init-param&gt;
       &lt;name&gt;error-page:403&lt;/name&gt;
       &lt;value&gt;/my_403_error_page.jsp&lt;/value&gt;
     &lt;/init-param&gt;
     &lt;init-param&gt;
       &lt;name&gt;secured-path:/acme/wholesale/*&lt;/name&gt;
       &lt;value&gt;CONTRACTOR&lt;/value&gt;
     &lt;/init-param&gt;
     &lt;init-param&gt;
       &lt;name&gt;secured-path:/acme/retail/*&lt;/name&gt;
       &lt;value&gt;CONTRACTOR,HOMEOWNER&lt;/value&gt;
     &lt;/init-param&gt;
   &lt;/filter&gt;

For the above example, the DeclaritivePathSecurityFilter would look for a request parameter
"myPathParameterName" and match its value
against init-parameters which name start with "secured-path:", taking the remainder of these
init-parameter names as url-pattern.
If a match is found, it will then evaluate the init-parameter value as list of role names
to enforce against the request.
If it fails, it "overrides" the request parameter "myPathParameterName" with the value for
a (required) configured "error-page:403"
init-parameter.
The filter doesn't actually *do* anything but just hand over the overridden path value to
the underlying portlet bridge/framework, making
this a completely generic solution.

And, as I indicated above, to make this more facy and less verbose, such a filter could instead
read the web.xml security configuration
(possibly using an init-param configuration which web-resource-name(s) to read) and dynamically
construct its own security configuration
based upon that.
Then, you would have an almost transparent and zero-configuration solution.

The alternative solution as you describe below and provided a patch for in http://issues.apache.org/jira/browse/PB-93
probably works fine
too (I haven't had time to look at it), but is StrutsPortlet specific and also requires action-mapping
security configuration (which is just
fine imo, but still Struts specific).

&gt; 
&gt; My first idea at (2) was to simply subclass the StrutsPortlet and override the renderError()
method.
&gt; But this is quite restrictive as the original method can't use a RequestDispatcher to
include a JSP
&gt; error page or call an Struts action.
&gt; 
&gt; Throwing an exception is also not an option, because exception thrown by StrutsPortlet
don't reach
&gt; the error handler configured by struts-action.xml
&gt; 
&gt; My solution is to patch StrutsPortlet so it pass the proxied ServletContext and HttpServeltRequest
&gt; to renderError, and use either a portlet init-param or context-param to configure an
error page by
&gt; http error code, replacing thus the web.xml &lt;error-page&gt; element, and leaving generic
exceptions to
&gt; the struts error handler.
&gt; 
&gt; It's a trivial patch and solves my issues until the portlet API provides a better solution,
or
&gt; someone (maybe me) thinks about emulating web.xml declarative security features inside
the portlet
&gt; bridge.
As I said above, I haven't reviewed your patch yet and might be willing to apply it for the
Struts Bridge if feasible, but if my proposal
for such a DeclaritivePathSecurityFilter actually makes sense (and is doable in practice),
I'd prefer such a more generic solution as it is
usable for many frameworks. In that case, I think we'd be more than happy to "host" such a
solution at Apache Portals Bridges, it just needs
to be written :)

However, my "solution" is something I drafted up in 5 min. without actually trying it out,
so possibly I overlooked something obvious which
might render it useless for your case.

Please let me know what you think and we can discuss it further if you like.

In addition, I'm curious to know if the Struts 2 Portlet developers might already have come
up with a solution for this problem themselves?
Any feedback on both these proposals from Fernando and myself would be very welcome.


&gt; 
&gt; 
&gt; []s, Fernando Lozano
&gt; 4Linux Software, Brazil
&gt; 




---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-93) Allow configuring a custom error page for HTTP 403 (access denied)</title>
<author><name>&quot;Fernando Silva Lozano (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200911.mbox/%3c436310437.1257778953416.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c436310437-1257778953416-JavaMail-jira@brutus%3e</id>
<updated>2009-11-09T15:02:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fernando Silva Lozano updated PB-93:
------------------------------------

    Attachment: error403.war

A simple CRUD portlet that needs an user with either roles 'gerente' or 'equipe' to change
data. This allows seeing the problem (if portlet init-parameter 'HttpError403Page' is commented
out) or see the patch attached to this issue working.

Sorry, test application in portuguese, but it's so simple (no db, java Map used as 'in-memory'
db) I hope no one will have problem following it. If need I can translate to english.

Configuration files and dependent jars in WEB-INF/lib reflects my development environment
using eXo Platform but there should be nothing in the code which is not JSR-168 / JSR-286
compliant and would prevent working with another portlet container.

&gt; Allow configuring a custom error page for HTTP 403 (access denied)
&gt; ------------------------------------------------------------------
&gt;
&gt;                 Key: PB-93
&gt;                 URL: https://issues.apache.org/jira/browse/PB-93
&gt;             Project: Portals Bridges
&gt;          Issue Type: New Feature
&gt;          Components: struts
&gt;         Environment: eXo PC 2.0.5 or eXo WCM 1.0, JBoss AS 4.2.3
&gt;            Reporter: Fernando Silva Lozano
&gt;            Priority: Blocker
&gt;         Attachments: error403.war, pb-struts-error403.patch
&gt;
&gt;
&gt; When using Java EE declarative security with struts we rely on web.xml &lt;security-constraint&gt;
and &lt;error-page&gt; to block access to unauthorized pages and display a friendly error
page so, if for example the user followed a bookmark to a page he doesn't have access anymore,
he can return to normal application navigational flow.
&gt; Both elements become no-ops inside a portlet container, but Struts own action mapping
has a roles attribute that replaces the &lt;security -constraint&gt;. But it has no replacement
for &lt;error-page&gt;. Struts returns the access denied error as an HTTP 403 error and not
an exception, so Struts exception handlers cannot be used to provide the user friendly error
page.
&gt; As a portlet cannot return HTTP errors to the user browser, the StrutsPortlet from Struts
Portlet Bridge has a method renderError that displays in a hard-coded error page information
about the error. I patched this method so, if found an the parameter "HttpError403Page", the
Struts Portlet includes the page given as the paramter value. If not, or if there's an exception
while including, continue to the hard-coded error page.
&gt; The portlet init parameter is non-intrusive and follows the portlet bridge convention
of using those to configure default pages for edit, help and view portlet modes.
&gt; Although my tests were made on eXo Platform, I think the issue and my fix are generic
enough to affect and work with any portlet container.
&gt; You can see my message on the apache portals mailing list (the first one from november
2009) for a more detailed explanation.
&gt; http://mail-archives.apache.org/mod_mbox/portals-bridges-user/200911.mbox/browser

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-93) Allow configuring a custom error page for HTTP 403 (access denied)</title>
<author><name>&quot;Fernando Silva Lozano (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200911.mbox/%3c1707892926.1257778475807.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1707892926-1257778475807-JavaMail-jira@brutus%3e</id>
<updated>2009-11-09T14:54:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fernando Silva Lozano updated PB-93:
------------------------------------

    Attachment: pb-struts-error403.patch

Adds init parameter HttpError403Page to StrutsPortlet so renderError includes an user-friendly
error page when an action mapping is configured with a roles attribute.

&gt; Allow configuring a custom error page for HTTP 403 (access denied)
&gt; ------------------------------------------------------------------
&gt;
&gt;                 Key: PB-93
&gt;                 URL: https://issues.apache.org/jira/browse/PB-93
&gt;             Project: Portals Bridges
&gt;          Issue Type: New Feature
&gt;          Components: struts
&gt;         Environment: eXo PC 2.0.5 or eXo WCM 1.0, JBoss AS 4.2.3
&gt;            Reporter: Fernando Silva Lozano
&gt;            Priority: Blocker
&gt;         Attachments: pb-struts-error403.patch
&gt;
&gt;
&gt; When using Java EE declarative security with struts we rely on web.xml &lt;security-constraint&gt;
and &lt;error-page&gt; to block access to unauthorized pages and display a friendly error
page so, if for example the user followed a bookmark to a page he doesn't have access anymore,
he can return to normal application navigational flow.
&gt; Both elements become no-ops inside a portlet container, but Struts own action mapping
has a roles attribute that replaces the &lt;security -constraint&gt;. But it has no replacement
for &lt;error-page&gt;. Struts returns the access denied error as an HTTP 403 error and not
an exception, so Struts exception handlers cannot be used to provide the user friendly error
page.
&gt; As a portlet cannot return HTTP errors to the user browser, the StrutsPortlet from Struts
Portlet Bridge has a method renderError that displays in a hard-coded error page information
about the error. I patched this method so, if found an the parameter "HttpError403Page", the
Struts Portlet includes the page given as the paramter value. If not, or if there's an exception
while including, continue to the hard-coded error page.
&gt; The portlet init parameter is non-intrusive and follows the portlet bridge convention
of using those to configure default pages for edit, help and view portlet modes.
&gt; Although my tests were made on eXo Platform, I think the issue and my fix are generic
enough to affect and work with any portlet container.
&gt; You can see my message on the apache portals mailing list (the first one from november
2009) for a more detailed explanation.
&gt; http://mail-archives.apache.org/mod_mbox/portals-bridges-user/200911.mbox/browser

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-93) Allow configuring a custom error page for HTTP 403 (access denied)</title>
<author><name>&quot;Fernando Silva Lozano (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200911.mbox/%3c1553541788.1257778354390.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1553541788-1257778354390-JavaMail-jira@brutus%3e</id>
<updated>2009-11-09T14:52:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Allow configuring a custom error page for HTTP 403 (access denied)
------------------------------------------------------------------

                 Key: PB-93
                 URL: https://issues.apache.org/jira/browse/PB-93
             Project: Portals Bridges
          Issue Type: New Feature
          Components: struts
         Environment: eXo PC 2.0.5 or eXo WCM 1.0, JBoss AS 4.2.3
            Reporter: Fernando Silva Lozano
            Priority: Blocker


When using Java EE declarative security with struts we rely on web.xml &lt;security-constraint&gt;
and &lt;error-page&gt; to block access to unauthorized pages and display a friendly error
page so, if for example the user followed a bookmark to a page he doesn't have access anymore,
he can return to normal application navigational flow.

Both elements become no-ops inside a portlet container, but Struts own action mapping has
a roles attribute that replaces the &lt;security -constraint&gt;. But it has no replacement
for &lt;error-page&gt;. Struts returns the access denied error as an HTTP 403 error and not
an exception, so Struts exception handlers cannot be used to provide the user friendly error
page.

As a portlet cannot return HTTP errors to the user browser, the StrutsPortlet from Struts
Portlet Bridge has a method renderError that displays in a hard-coded error page information
about the error. I patched this method so, if found an the parameter "HttpError403Page", the
Struts Portlet includes the page given as the paramter value. If not, or if there's an exception
while including, continue to the hard-coded error page.

The portlet init parameter is non-intrusive and follows the portlet bridge convention of using
those to configure default pages for edit, help and view portlet modes.

Although my tests were made on eXo Platform, I think the issue and my fix are generic enough
to affect and work with any portlet container.

You can see my message on the apache portals mailing list (the first one from november 2009)
for a more detailed explanation.
http://mail-archives.apache.org/mod_mbox/portals-bridges-user/200911.mbox/browser

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Portles and declarative security</title>
<author><name>fernando@lozano.eti.br</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200911.mbox/%3c4af08db2.f9.377e.43568287@lozano.eti.br%3e"/>
<id>urn:uuid:%3c4af08db2-f9-377e-43568287@lozano-eti-br%3e</id>
<updated>2009-11-03T20:08:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

I some issuies with Java EE declarative security and Struts 1.x Portlets, and a patch that
solves
some of them. I just wish feedback from users and developers on those issues and my ideas
about them
before opening a JIRA ticket abd submiting my patch.

Althouth some developers perfer to ignore Java EE security completely, and use either Acegi
or some
in-house (in-)security solution, if you do use Struts or JSF you can leverage standard declarative
security with ease.

But,when you move from from servlets to portlets, you give up all declarative security features,
that is, web.xml &lt;security-constraints&gt; become noops. It's not so bad with Struts, where
you can
stilluse roles in action mappings, but with JSF and plain servlet development you nave no
option but
hand coded programatic security. :-(

I understand portlets don't have URI so at first you would not have away to implement declarative
security for portlets. Actually, most frameworks use a navigation parameter(navigational state)
to
emulate request URLs -- This is the case with both the standard JSF portelt bridge and the
Apache
Portals struts portlet bridige from apache portals. So it would be feasible for a portlet
bridge to
read &lt;security-constraints&gt; from web.xml and emulate their working as if in a servlet
container.

In the general case, there could be a &lt;security-contraint&gt; inside portlet.xml with subelements
as
&lt;parameter-name&gt; and &lt;parameter-value&gt; to replace &lt;uri-pattern&gt; from web.xml,
and the portlet
container could enforce declarative security access control using the navigational context.

I don't believe I was the first to think about this but I think this is a big omission from
all JSRs
related to portlet development under Java EE. :-( 

Another, but related, issue: back to JSF (and also struts) in a servlet container we would
use a
web.xml &lt;error-page&gt; element for &lt;error-code&gt; 403 to display a user-friendly "access
denied" page.

We also loose this capability inside a portlet container, but that's another thing a portlet
bridge
could emulate with ease. And that's another thing we could have properly implemented in portlet.xml,
maybe as an exception handler so portlets don't get configured for http error codes.

So there are actually two issues:

1. Enforcing declarative security access controls inside a portlet container -- Struts already
solves that using &lt;action-mapping&gt; compatible with both servlet and portlet containers;

2. Dsiplaying an user-friendly error page, which in a servelt container is done by the container
itself but not by a portlet container, and neither Struts nor the Apache Portals Portlet Bridge
provide an alternative.

My first idea at (2) was to simply subclass the StrutsPortlet and override the renderError()
method.
But this is quite restrictive as the original method can't use a RequestDispatcher to include
a JSP
error page or call an Struts action.

Throwing an exception is also not an option, because exception thrown by StrutsPortlet don't
reach
the error handler configured by struts-action.xml

My solution is to patch StrutsPortlet so it pass the proxied ServletContext and HttpServeltRequest
to renderError, and use either a portlet init-param or context-param to configure an error
page by
http error code, replacing thus the web.xml &lt;error-page&gt; element, and leaving generic
exceptions to
the struts error handler.

It's a trivial patch and solves my issues until the portlet API provides a better solution,
or
someone (maybe me) thinks about emulating web.xml declarative security features inside the
portlet
bridge.


[]s, Fernando Lozano
ex-Java.Net Community Manager
4Linux Software, Brazil


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-92) JSF servlets don't work when used side-by-side with JSF portlets</title>
<author><name>&quot;Trevor Lohrbeer (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200908.mbox/%3c219745159.1250267235049.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c219745159-1250267235049-JavaMail-jira@brutus%3e</id>
<updated>2009-08-14T16:27:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Trevor Lohrbeer updated PB-92:
------------------------------

    Attachment: servlet-and-portlets-side-by-side-v2.patch

Attached is an updated patch. My isPortlet() function in PortletViewHandlerImpl was not working
correctly because PortletExternalContextImpl does not implement javax.portlet.PortletContext.
Instead, now I'm testing to see if the facesContext is an instance of PortletFacesContextImpl,
which should work as long as the FacesContextFactory remains the portals bridges FacesContextFactoryImpl.

&gt; JSF servlets don't work when used side-by-side with JSF portlets
&gt; ----------------------------------------------------------------
&gt;
&gt;                 Key: PB-92
&gt;                 URL: https://issues.apache.org/jira/browse/PB-92
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: jsf
&gt;    Affects Versions: 1.0.4
&gt;         Environment: JBoss 4.0.5 running Apache MyFaces 1.1.5, portlet-bridges 1.0.4
&gt;            Reporter: Trevor Lohrbeer
&gt;         Attachments: servlet-and-portlets-side-by-side-v2.patch, servlet-and-portlets-side-by-side.patch
&gt;
&gt;
&gt; When the portlet bridges library is included in a WAR file, JSP pages can only be accessed
through portlets, not directly from the FacesServlet. Attempting to access a JSP page through
the FacesServlet results in an IllegalArgumentException with the message "Only PortletContext
supported". The stack trace shows that this occurs when attempting to access the session map.
&gt; Upon further investigation, the problem stems from the fact that the portlet-bridges-jsf
library includes a META-INF/faces-config.xml file which installs a custom FacesContextFactory
and ViewHandler. These are installed for the entire web application, yet are designed only
to work with portlets. Thus, running JSF portlets and servlets side-by-side results in errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-92) JSF servlets don't work when used side-by-side with JSF portlets</title>
<author><name>&quot;Trevor Lohrbeer (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200908.mbox/%3c1096944967.1250039054805.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1096944967-1250039054805-JavaMail-jira@brutus%3e</id>
<updated>2009-08-12T01:04:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Trevor Lohrbeer updated PB-92:
------------------------------

    Attachment: servlet-and-portlets-side-by-side.patch

Attached is a patch that fixes the problem by allowing the various maps used by a request
to use either portlet or servlet contexts and requests. It also modifies the PortletViewHandlerImpl
to delegate to the parent view handler when processing a servlet request.

Note that I just started looking at the code today, so there may be a more efficient way to
achieve the same results. I included notes in parts that I thought might need to be reviewed
before merging into the main codebase.

&gt; JSF servlets don't work when used side-by-side with JSF portlets
&gt; ----------------------------------------------------------------
&gt;
&gt;                 Key: PB-92
&gt;                 URL: https://issues.apache.org/jira/browse/PB-92
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: jsf
&gt;    Affects Versions: 1.0.4
&gt;         Environment: JBoss 4.0.5 running Apache MyFaces 1.1.5, portlet-bridges 1.0.4
&gt;            Reporter: Trevor Lohrbeer
&gt;         Attachments: servlet-and-portlets-side-by-side.patch
&gt;
&gt;
&gt; When the portlet bridges library is included in a WAR file, JSP pages can only be accessed
through portlets, not directly from the FacesServlet. Attempting to access a JSP page through
the FacesServlet results in an IllegalArgumentException with the message "Only PortletContext
supported". The stack trace shows that this occurs when attempting to access the session map.
&gt; Upon further investigation, the problem stems from the fact that the portlet-bridges-jsf
library includes a META-INF/faces-config.xml file which installs a custom FacesContextFactory
and ViewHandler. These are installed for the entire web application, yet are designed only
to work with portlets. Thus, running JSF portlets and servlets side-by-side results in errors.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-92) JSF servlets don't work when used side-by-side with JSF portlets</title>
<author><name>&quot;Trevor Lohrbeer (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200908.mbox/%3c1939885900.1250038815737.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1939885900-1250038815737-JavaMail-jira@brutus%3e</id>
<updated>2009-08-12T01:00:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
JSF servlets don't work when used side-by-side with JSF portlets
----------------------------------------------------------------

                 Key: PB-92
                 URL: https://issues.apache.org/jira/browse/PB-92
             Project: Portals Bridges
          Issue Type: Bug
          Components: jsf
    Affects Versions: 1.0.4
         Environment: JBoss 4.0.5 running Apache MyFaces 1.1.5, portlet-bridges 1.0.4
            Reporter: Trevor Lohrbeer


When the portlet bridges library is included in a WAR file, JSP pages can only be accessed
through portlets, not directly from the FacesServlet. Attempting to access a JSP page through
the FacesServlet results in an IllegalArgumentException with the message "Only PortletContext
supported". The stack trace shows that this occurs when attempting to access the session map.

Upon further investigation, the problem stems from the fact that the portlet-bridges-jsf library
includes a META-INF/faces-config.xml file which installs a custom FacesContextFactory and
ViewHandler. These are installed for the entire web application, yet are designed only to
work with portlets. Thus, running JSF portlets and servlets side-by-side results in errors.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>on vacation 16/7 - 7/8</title>
<author><name>Ate Douma &lt;ate@douma.nu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200907.mbox/%3c4A5CEF16.3080008@douma.nu%3e"/>
<id>urn:uuid:%3c4A5CEF16-3080008@douma-nu%3e</id>
<updated>2009-07-14T20:48:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Norway, camping, completely disconnected  :)

Happy holidays everyone!

Regards,

Ate


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-91) Add windowState attribute to link, form and rewrite tags</title>
<author><name>&quot;Steve Bosman (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c1803200397.1246010947466.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1803200397-1246010947466-JavaMail-jira@brutus%3e</id>
<updated>2009-06-26T10:09:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Steve Bosman updated PB-91:
---------------------------

    Attachment: PB-91.patch

Added a new patch which handles portletMode as well.

Changing the portlet mode is a slightly harder modification than the one for window state
because it needed a change in the StrutsPortletURL class to pick the correct request parameter,
i.e. _spageview,  _spageedit or  _spagehelp (otherwise users would keep being sent to the
default pages as declared in portlet.xml).

&gt; Add windowState attribute to link, form and rewrite tags
&gt; --------------------------------------------------------
&gt;
&gt;                 Key: PB-91
&gt;                 URL: https://issues.apache.org/jira/browse/PB-91
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Steve Bosman
&gt;            Assignee: Ate Douma
&gt;            Priority: Minor
&gt;             Fix For: 1.0.5
&gt;
&gt;         Attachments: PB-91.patch, PB-91.patch
&gt;
&gt;
&gt; It would be useful if the link, form and rewrite tags could create links that alter the
window state.
&gt; I have supplied a patch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>NullPointerException with Tiles on submit</title>
<author><name>&quot;PIRONET Benoit&quot; &lt;benoit.pironet@europarl.europa.eu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c37B7639998398A4C9DB07CFB30E1A76101C8047D@EMAILLUXSV31.ep.parl.union.eu%3e"/>
<id>urn:uuid:%3c37B7639998398A4C9DB07CFB30E1A76101C8047D@EMAILLUXSV31-ep-parl-union-eu%3e</id>
<updated>2009-06-26T09:34:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
 
I'm using Struts 1.2.4 with Tiles and Bridges to create portlets for
Jahia. 
 
I have a page with a form using Tiles for rendering. The page is
correctly displayed. 
When a user push the submit button, the action is correctly called.
When the index.jsp is processed:
any &lt;tiles:useAttribute/&gt; fails with: Tiles context not found
any &lt;tiles:insert/&gt; fails with: java.lang.NullPointerException
 
The stack is joined at the end of the mail.
 
The problem seems to be similar to
http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200601.mbox
/%3C20060126111656.38148.qmail@web25808.mail.ukl.yahoo.com%3E but I
can't find the patch file online.
 
Could somebody provide me the patch for tiles or have information about
this error?
 
Thank you very much in advance,
 
Benoit PIRONET
 
 
 
The complete stack is: 
 
org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java
:685)
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java
:476)
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:436)
org.apache.jsp.index_jsp._jspx_meth_tiles_005finsert_005f0(index_jsp.jav
a:267)
org.apache.jsp.index_jsp._jspService(index_jsp.java:218)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:630)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:535)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:472)
org.apache.portals.bridges.struts.PortletServletRequestDispatcher.invoke
(PortletServletRequestDispatcher.java:128)
org.apache.portals.bridges.struts.PortletServletRequestDispatcher.includ
e(PortletServletRequestDispatcher.java:146)
org.apache.portals.bridges.struts.PortletServlet.performActionRenderRequ
est(PortletServlet.java:179)
org.apache.portals.bridges.struts.PortletTilesRequestProcessor.processRo
les(PortletTilesRequestProcessor.java:57)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
199)
org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(P
ortletTilesRequestProcessor.java:50)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:630)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:535)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:472)
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPor
tlet.java:375)
org.apache.portals.bridges.struts.StrutsPortlet.doView(StrutsPortlet.jav
a:274)
javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortl
etInstance.java:102)
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedCon
tainerServlet.java:235)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:630)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:535)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:472)
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(Servl
etPortletInvoker.java:215)
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(Servl
etPortletInvoker.java:126)
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl
.java:119)
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPort
let(JetspeedPortletContainerWrapper.java:120)
org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJo
bImpl.java:121)
org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(Portle
tRendererImpl.java:120)
org.apache.jetspeed.aggregator.impl.PortletAggregatorImpl.build(PortletA
ggregatorImpl.java:84)
org.apache.jetspeed.aggregator.PortletValve.invoke(PortletValve.java:46)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:
76)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.jahia.services.applications.JahiaSecurityValveImpl.invoke(JahiaSecur
ityValveImpl.java:82)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalU
RLValveImpl.java:67)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.jahia.services.applications.JahiaProfilerValveImpl.invoke(JahiaProfi
lerValveImpl.java:67)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(Capabil
ityValveImpl.java:128)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.jahia.portal.localization.LocalizationValveImpl.invoke(LocalizationV
alveImpl.java:118)
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jets
peedPipeline.java:166)
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.ja
va:145)
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:21
4)
org.jahia.bin.JahiaJetspeedServlet.doGet(JahiaJetspeedServlet.java:235)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:630)
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:535)
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:472)
org.jahia.services.applications.JetspeedDispatchingProvider.render(Jetsp
eedDispatchingProvider.java:271)
org.jahia.services.applications.DispatchingServiceImpl.getAppOutput(Disp
atchingServiceImpl.java:165)
org.jahia.services.applications.DispatchingServiceImpl$$FastClassByCGLIB
$$7271be17.invoke()
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.i
nvokeJoinpoint(Cglib2AopProxy.java:661)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:122)
org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(Abst
ractTraceInterceptor.java:80)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:144)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedIntercept
or.intercept(Cglib2AopProxy.java:606)
org.jahia.services.applications.DispatchingServiceImpl$$EnhancerByCGLIB$
$78f956e6.getAppOutput()
org.jahia.services.fields.ContentApplicationField.getValue(ContentApplic
ationField.java:110)
org.jahia.services.fields.ContentField.getValue(ContentField.java:314)
org.jahia.data.fields.JahiaApplicationField.load(JahiaApplicationField.j
ava:133)
org.jahia.services.fields.JahiaFieldBaseService.loadField(JahiaFieldBase
Service.java:822)
org.jahia.services.fields.JahiaFieldBaseService.loadField(JahiaFieldBase
Service.java:776)
org.jahia.services.fields.JahiaFieldBaseService$$FastClassByCGLIB$$a2320
0ff.invoke()
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.i
nvokeJoinpoint(Cglib2AopProxy.java:661)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:122)
org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(Abst
ractTraceInterceptor.java:80)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:144)
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedIntercept
or.intercept(Cglib2AopProxy.java:606)
org.jahia.services.fields.JahiaFieldBaseService$$EnhancerByCGLIB$$796a97
1e.loadField()
org.jahia.services.containers.ContainerFactory.fullyLoadContainer(Contai
nerFactory.java:117)
org.jahia.services.containers.ContainerFactoryProxy.load(ContainerFactor
yProxy.java:120)
org.jahia.data.containers.JahiaContainer.checkProxy(JahiaContainer.java:
884)
org.jahia.data.containers.JahiaContainer.getField(JahiaContainer.java:50
0)
org.jahia.taglibs.field.AbstractFieldTag.doStartTag(AbstractFieldTag.jav
a:315)
org.jahia.taglibs.field.ApplicationFieldTag.doStartTag(ApplicationFieldT
ag.java:62)
org.apache.jsp.jsp.jahia.templates.refin.REFIN_005fJahiaPE_005ftemplates
.application_jsp._jspx_meth_content_005fapplicationField_005f2(applicati
on_jsp.java:14482)
org.apache.jsp.jsp.jahia.templates.refin.REFIN_005fJahiaPE_005ftemplates
.application_jsp._jspService(application_jsp.java:5902)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:630)
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:436)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:374)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:302)
org.jahia.engines.EngineRenderer.renderCore(EngineRenderer.java:210)
org.jahia.engines.EngineRenderer.render(EngineRenderer.java:86)
org.jahia.engines.core.Core_Engine.processCore(Core_Engine.java:167)
org.jahia.engines.core.Core_Engine.handleActions(Core_Engine.java:110)
org.jahia.operations.valves.EngineValve.processEngineRequest(EngineValve
.java:180)
org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:82)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.J2ProcessActionValve.invoke(J2ProcessActionV
alve.java:144)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.SkeletonAggregatorValve.invoke(SkeletonAggre
gatorValve.java:73)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckV
alve.java:73)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.OperationModeCheckValve.invoke(OperationMode
CheckValve.java:83)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.SiteCheckValve.invoke(SiteCheckValve.java:78
)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.EsiFragmentCacheReadValve.invoke(EsiFragment
CacheReadValve.java:329)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.operations.valves.EsiUrlCookieCheckValve.invoke(EsiUrlCookieCh
eckValve.java:311)
org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java
:208)
org.jahia.pipelines.impl.GenericPipeline.invoke(GenericPipeline.java:195
)
org.jahia.operations.OperationManager.handleOperations(OperationManager.
java:100)
org.jahia.bin.JahiaAction.execute(JahiaAction.java:76)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
226)
org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:8
2)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.jahia.bin.Jahia.process(Jahia.java:1659)
org.jahia.bin.Jahia.service(Jahia.java:861)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:433)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
86)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
5)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-91) Add windowState attribute to link, form and rewrite tags</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c959710699.1245922867355.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c959710699-1245922867355-JavaMail-jira@brutus%3e</id>
<updated>2009-06-25T09:41:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12723974#action_12723974
] 

Ate Douma commented on PB-91:
-----------------------------

Thanks for the patch!
I will review it shortly.
One enhancement I might merge in with this is also adding support for optionally setting target
PortletMode as well besides the WindowState.

&gt; Add windowState attribute to link, form and rewrite tags
&gt; --------------------------------------------------------
&gt;
&gt;                 Key: PB-91
&gt;                 URL: https://issues.apache.org/jira/browse/PB-91
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Steve Bosman
&gt;            Priority: Minor
&gt;             Fix For: 1.0.5
&gt;
&gt;         Attachments: PB-91.patch
&gt;
&gt;
&gt; It would be useful if the link, form and rewrite tags could create links that alter the
window state.
&gt; I have supplied a patch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (PB-91) Add windowState attribute to link, form and rewrite tags</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c2044686765.1245922867442.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2044686765-1245922867442-JavaMail-jira@brutus%3e</id>
<updated>2009-06-25T09:41:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ate Douma reassigned PB-91:
---------------------------

    Assignee: Ate Douma

&gt; Add windowState attribute to link, form and rewrite tags
&gt; --------------------------------------------------------
&gt;
&gt;                 Key: PB-91
&gt;                 URL: https://issues.apache.org/jira/browse/PB-91
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Steve Bosman
&gt;            Assignee: Ate Douma
&gt;            Priority: Minor
&gt;             Fix For: 1.0.5
&gt;
&gt;         Attachments: PB-91.patch
&gt;
&gt;
&gt; It would be useful if the link, form and rewrite tags could create links that alter the
window state.
&gt; I have supplied a patch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-91) Add windowState attribute to link, form and rewrite tags</title>
<author><name>&quot;Steve Bosman (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c858918861.1245921427350.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c858918861-1245921427350-JavaMail-jira@brutus%3e</id>
<updated>2009-06-25T09:17:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Steve Bosman updated PB-91:
---------------------------

    Priority: Minor  (was: Major)

&gt; Add windowState attribute to link, form and rewrite tags
&gt; --------------------------------------------------------
&gt;
&gt;                 Key: PB-91
&gt;                 URL: https://issues.apache.org/jira/browse/PB-91
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Steve Bosman
&gt;            Priority: Minor
&gt;             Fix For: 1.0.5
&gt;
&gt;         Attachments: PB-91.patch
&gt;
&gt;
&gt; It would be useful if the link, form and rewrite tags could create links that alter the
window state.
&gt; I have supplied a patch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-91) Add windowState attribute to link, form and rewrite tags</title>
<author><name>&quot;Steve Bosman (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c782445788.1245921187426.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c782445788-1245921187426-JavaMail-jira@brutus%3e</id>
<updated>2009-06-25T09:13:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Steve Bosman updated PB-91:
---------------------------

    Attachment: PB-91.patch

Patch tested locally using struts 1.2.9 and liferay 5.2.3 (although I see no reason for it
to be version dependent)

&gt; Add windowState attribute to link, form and rewrite tags
&gt; --------------------------------------------------------
&gt;
&gt;                 Key: PB-91
&gt;                 URL: https://issues.apache.org/jira/browse/PB-91
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Steve Bosman
&gt;             Fix For: 1.0.5
&gt;
&gt;         Attachments: PB-91.patch
&gt;
&gt;
&gt; It would be useful if the link, form and rewrite tags could create links that alter the
window state.
&gt; I have supplied a patch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-91) Add windowState attribute to link, form and rewrite tags</title>
<author><name>&quot;Steve Bosman (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200906.mbox/%3c389096507.1245921067450.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c389096507-1245921067450-JavaMail-jira@brutus%3e</id>
<updated>2009-06-25T09:11:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Add windowState attribute to link, form and rewrite tags
--------------------------------------------------------

                 Key: PB-91
                 URL: https://issues.apache.org/jira/browse/PB-91
             Project: Portals Bridges
          Issue Type: Improvement
          Components: struts
    Affects Versions: 1.0.4
            Reporter: Steve Bosman
             Fix For: 1.0.5


It would be useful if the link, form and rewrite tags could create links that alter the window
state.

I have supplied a patch

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Problem with tag html:link when change Struts app to Liferay's portlet</title>
<author><name>&quot;Phuc Bui&quot; &lt;phucbui2006@yahoo.com.vn&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200905.mbox/%3c002001c9ceb2$04c8d160$0e5a7420$@com.vn%3e"/>
<id>urn:uuid:%3c002001c9ceb2$04c8d160$0e5a7420$@com-vn%3e</id>
<updated>2009-05-07T01:20:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,
I'm having a problem when changing a Struts app to Liferay's portlet.
In Struts app, I use tag &lt;html:link&gt; to go to a Struts action with some
parameters.
When I run it as Struts application, the link like this:
http://localhost:8080/FirstStrutsSample/detailViewAction.do?id=05130030
In action class, I use request.getParameter("id") -&gt; it's OK

But when run it as portlet, the link like this:
http://localhost:8080/web/guest/home?p_p_id=studentManagement_WAR_FirstStrut
sSample&amp;p_p_lifecycle=1&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1&amp;p
_p_col_count=2&amp;_studentManagement_WAR_FirstStrutsSample__spage=%2FdetailView
Action.do%3Fid%3D05130030
And it understands that the parameter is _spage and value is
/detailViewAction.do?id=05130072
In action class the method request.getParameter("id") returns null.

So what is the problem here? 

Thanks for your reply 

Phuc Bui


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-90) GroovyPortletHeaderPhaseSupport should be deprecated</title>
<author><name>&quot;Woonsan Ko (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200904.mbox/%3c1011757392.1239721874903.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1011757392-1239721874903-JavaMail-jira@brutus%3e</id>
<updated>2009-04-14T15:11:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Woonsan Ko updated PB-90:
-------------------------

    Description: GroovyPortletHeaderPhaseSupport should be deprecated because header phase
is natively supported in JSR-286 compliant portal.  (was: GroovyPortletHeaderPhaseSupport
should be deprecated because header phase is not a native support in JSR-286 compliant portal.)

&gt; GroovyPortletHeaderPhaseSupport should be deprecated
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: PB-90
&gt;                 URL: https://issues.apache.org/jira/browse/PB-90
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;            Reporter: Woonsan Ko
&gt;            Assignee: Woonsan Ko
&gt;
&gt; GroovyPortletHeaderPhaseSupport should be deprecated because header phase is natively
supported in JSR-286 compliant portal.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (PB-90) GroovyPortletHeaderPhaseSupport should be deprecated</title>
<author><name>&quot;Woonsan Ko (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200904.mbox/%3c1586329588.1239721274993.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1586329588-1239721274993-JavaMail-jira@brutus%3e</id>
<updated>2009-04-14T15:01:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Woonsan Ko resolved PB-90.
--------------------------

    Resolution: Fixed

&gt; GroovyPortletHeaderPhaseSupport should be deprecated
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: PB-90
&gt;                 URL: https://issues.apache.org/jira/browse/PB-90
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;            Reporter: Woonsan Ko
&gt;            Assignee: Woonsan Ko
&gt;
&gt; GroovyPortletHeaderPhaseSupport should be deprecated because header phase is not a native
support in JSR-286 compliant portal.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-90) GroovyPortletHeaderPhaseSupport should be deprecated</title>
<author><name>&quot;Woonsan Ko (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200904.mbox/%3c235576828.1239721035102.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c235576828-1239721035102-JavaMail-jira@brutus%3e</id>
<updated>2009-04-14T14:57:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
GroovyPortletHeaderPhaseSupport should be deprecated
----------------------------------------------------

                 Key: PB-90
                 URL: https://issues.apache.org/jira/browse/PB-90
             Project: Portals Bridges
          Issue Type: Improvement
            Reporter: Woonsan Ko
            Assignee: Woonsan Ko


GroovyPortletHeaderPhaseSupport should be deprecated because header phase is not a native
support in JSR-286 compliant portal.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-89) Name property of a submit input not correctly set (&quot;1&quot; instead of real value)</title>
<author><name>&quot;Vincent Vanghelle (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200903.mbox/%3c1105992530.1237816921490.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1105992530-1237816921490-JavaMail-jira@brutus%3e</id>
<updated>2009-03-23T14:02:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Name property of a submit input not correctly set ("1" instead of real value)
-----------------------------------------------------------------------------

                 Key: PB-89
                 URL: https://issues.apache.org/jira/browse/PB-89
             Project: Portals Bridges
          Issue Type: Bug
          Components: struts
    Affects Versions: 1.0.4
         Environment: Local on windows, Jboss Portal 2.7.1 bundle, jboss AS 4.2.3
            Reporter: Vincent Vanghelle


Hi.

I've got a problem in my form, in a struts web app.

Directly via the action, form is ok, but with struts portlet, there is a problem at the "name"
tag of a submit input.

Here is the submit input of my form :

Code:

&lt;html:submit property="action" &gt;&lt;bean:message key="link.Cancel"/&gt;&lt;/html:submit&gt;
	



For both directly via the action and via the portlet, the generated html is :

Code:

&lt;input type="submit" name="action" value="Cancel" /&gt;	



But in my form bean, i've got 2 different things :
- Via the action, the property is ok, when I do a getAction() I obtain "Cancel"
- Via the Struts portlet, when I do a getAction(), I obtain "1". (whatever the value I give
to the submit input name)
And it does that only for the submit input, text input are normal

So there's a problem in the form bean Validator, and my form don't work...


thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[Fwd: [ANN-pmcs] Registration for ApacheCon Europe 2009 is now open!]</title>
<author><name>Ate Douma &lt;ate@douma.nu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200901.mbox/%3c49816E19.4000303@douma.nu%3e"/>
<id>urn:uuid:%3c49816E19-4000303@douma-nu%3e</id>
<updated>2009-01-29T08:51:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
ApacheCon EU 2009 registration is now open!
23-27 March -- Mövenpick Hotel, Amsterdam, Netherlands
http://www.eu.apachecon.com/
================================

Registration for ApacheCon Europe 2009 is now open - act before early
bird prices expire 6 February.  Remember to book a room at the Mövenpick
and use the Registration Code: Special package attendees for the
conference registration, and get 150 Euros off your full conference
registration.

Lower Costs - Thanks to new VAT tax laws, our prices this year are 19%
lower than last year in Europe!  We've also negotiated a Mövenpick rate
  of a maximum of 155 Euros per night for attendees in our room block.

Quick Links:

    http://xrl.us/aceu09sp  See the schedule
    http://xrl.us/aceu09hp  Get your hotel room
    http://xrl.us/aceu09rp  Register for the conference

Other important notes:

- Geeks for Geeks is a new mini-track where we can feature advanced
technical content from project committers.  And our Hackathon on Monday
and Tuesday is open to all attendees - be sure to check it off in your
registration.

- The Call for Papers for ApacheCon US 2009, held 2-6 November
2009 in Oakland, CA, is open through 28 February, so get your
submissions in now.  This ApacheCon will feature special events with
some of the ASF's original founders in celebration of the 10th
anniversary of The Apache Software Foundation.

    http://www.us.apachecon.com/c/acus2009/

- Interested in sponsoring the ApacheCon conferences?  There are plenty
of sponsor packages available - please contact Delia Frees at
delia@apachecon.com for further information.

======================================================
ApacheCon EU 2008: A week of Open Source at it's best!

Hackathon - open to all! | Geeks for Geeks | Lunchtime Sessions
In-Depth Trainings | Multi-Track Sessions | BOFs | Business Panel
Lightning Talks | Receptions | Fast Feather Track | Expo... and more!

- Shane Curcuru, on behalf of
   Noirin Shirley, Conference Lead,
   and the whole ApacheCon Europe 2009 Team
   http://www.eu.apachecon.com/  23-27 March -- Amsterdam, Netherlands





---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Checksums of org.apache.portals.bridges:portals-bridges-common:1.0.4</title>
<author><name>&quot;Nick Stolwijk&quot; &lt;nick.stolwijk@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200812.mbox/%3c3a15f5ad0812110730r5d3ccadcia65a1ef134ef7d3e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a15f5ad0812110730r5d3ccadcia65a1ef134ef7d3e@mail-gmail-com%3e</id>
<updated>2008-12-11T15:30:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I've noticed that
org.apache.portals.bridges:portals-bridges-common:1.0.4 on the central
maven repository [1] has the wrong SHA1 checksums.

In a reaction from a Maven developer he suggested that the developers
of portals-bridges-commons could fix the checksums and request a new
upload for them.

[quote]
Yes, you need to make sure they are fixed in the apache repository first:
http://people.apache.org/repo/m2-ibiblio-rsync-repository
which is up to the project in question.

Then they can ask for them to be re-synced (checks only, not POMs or
artifact changes).
[/quote]

Could someone pick this up?

[1] http://repo1.maven.org/maven2/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.jar

With regards,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl

---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-88) Will bridges work correct with newer versions of struts 1.3.x</title>
<author><name>&quot;Alexey Zavizionov (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c567671317.1224854146153.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c567671317-1224854146153-JavaMail-jira@brutus%3e</id>
<updated>2008-10-24T13:15:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Will bridges work correct with newer versions of struts 1.3.x
-------------------------------------------------------------

                 Key: PB-88
                 URL: https://issues.apache.org/jira/browse/PB-88
             Project: Portals Bridges
          Issue Type: Improvement
            Reporter: Alexey Zavizionov




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c2045010785.1224853784341.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2045010785-1224853784341-JavaMail-jira@brutus%3e</id>
<updated>2008-10-24T13:09:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antony Stubbs updated PB-84:
----------------------------

    Attachment: utils.patch

Still, applying the changes suggested so far will at least make it easier for people to debug,
rather than the CCE.

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar, utils.patch
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c1021769705.1224637124941.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1021769705-1224637124941-JavaMail-jira@brutus%3e</id>
<updated>2008-10-22T00:58:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12641683#action_12641683
] 

Ate Douma commented on PB-84:
-----------------------------

FYI: PLUTO-516 has been fixed, see: https://issues.apache.org/jira/browse/PLUTO-516?focusedCommentId=12641680#action_12641680

That issue very much relates to this one and if you can read in my comment on PLUTO-516, I
suspect the reported errors on PB-84 and PB-77 on other containers like JBoss and OpenPortal
might very well be caused by the exact same implementation mistake.
&gt;From that POV, I'm even less inclined now to spend much time trying to find a reliable
work around as that most likely just won't be possible if those other containers indeed made
the same mistake.
The earlier work around I proposed above (https://issues.apache.org/jira/browse/PB-84?focusedCommentId=12623333#action_12623333)
definitely won't work.
As I haven't received the needed feedback for validation on that work around I already concluded
it to be invalid, and now I'm even more sure about it.

So, unless someone can come up with another explanation and possible solution for those containers,
I'll probably close this issue in the near future as Incomplete/Won't Fix 

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (PB-87) javadoc for ServletPortletSessionProxy</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c721338280.1224621524613.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c721338280-1224621524613-JavaMail-jira@brutus%3e</id>
<updated>2008-10-21T20:38:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ate Douma reassigned PB-87:
---------------------------

    Assignee: Ate Douma

&gt; javadoc for ServletPortletSessionProxy
&gt; --------------------------------------
&gt;
&gt;                 Key: PB-87
&gt;                 URL: https://issues.apache.org/jira/browse/PB-87
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Antony Stubbs
&gt;            Assignee: Ate Douma
&gt;         Attachments: bridges javadoc patch.diff
&gt;
&gt;
&gt; adds missing javadoc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-87) javadoc for ServletPortletSessionProxy</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c1995860196.1224559244377.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1995860196-1224559244377-JavaMail-jira@brutus%3e</id>
<updated>2008-10-21T03:20:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-87?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antony Stubbs updated PB-87:
----------------------------

    Attachment: bridges javadoc patch.diff

&gt; javadoc for ServletPortletSessionProxy
&gt; --------------------------------------
&gt;
&gt;                 Key: PB-87
&gt;                 URL: https://issues.apache.org/jira/browse/PB-87
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;    Affects Versions: 1.0.4
&gt;            Reporter: Antony Stubbs
&gt;         Attachments: bridges javadoc patch.diff
&gt;
&gt;
&gt; adds missing javadoc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (PB-87) javadoc for ServletPortletSessionProxy</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c1794038795.1224559124403.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1794038795-1224559124403-JavaMail-jira@brutus%3e</id>
<updated>2008-10-21T03:18:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
javadoc for ServletPortletSessionProxy
--------------------------------------

                 Key: PB-87
                 URL: https://issues.apache.org/jira/browse/PB-87
             Project: Portals Bridges
          Issue Type: Improvement
    Affects Versions: 1.0.4
            Reporter: Antony Stubbs


adds missing javadoc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c1744202444.1224544124599.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1744202444-1224544124599-JavaMail-jira@brutus%3e</id>
<updated>2008-10-20T23:08:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12641201#action_12641201
] 

Antony Stubbs commented on PB-84:
---------------------------------

While we're at improving this code, may I also suggest something along the following lines?
To help with error resolution...

{code}
	/** The portlet scope namespace as defined in PLT. 15.3. */
	private static final String PORTLET_SCOPE_NAMESPACE = "javax.portlet.p.";

	/**
	 * The attribute name of the portlet winow id test, to be stored in the portlet session.
	 */
    public static String PORTLET_WINDOW_ID = "org.apache.portals.bridges.util.portlet_window_id";
    
{code}

and

{code}
...
					final String[] nameRef = new String[1]; // array so that it can be accessed within anonymous
class yet changed later
...
					// check that the attribute name was prefixed properly / as expected
					if (nameRef[0].startsWith(PORTLET_SCOPE_NAMESPACE) &amp;&amp; nameRef[0].contains("?"))
					{
						portletWindowId = nameRef[0].substring(PORTLET_SCOPE_NAMESPACE.length(),
							nameRef[0].indexOf('?'));
						System.out.println(" --&gt; found - PORTLET_WINDOW_ID = " + portletWindowId);
						session.setAttribute(PORTLET_WINDOW_ID, portletWindowId,
							PortletSession.PORTLET_SCOPE);
					}
					else
					{
						throw new RuntimeException(
							"Window ID attribute not prefixed with PORTLET_SCOPE_NAMESPACE. "
								+ "Make sure the portlet container stores the attribute in PORTLET_SCOPE_NAMESPACE
"
								+ "and prefix's the name with the PORTLET NAMESPACE.");
					}
{code}

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c871524207.1224539444395.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c871524207-1224539444395-JavaMail-jira@brutus%3e</id>
<updated>2008-10-20T21:50:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12641169#action_12641169
] 

Antony Stubbs commented on PB-84:
---------------------------------

Ok, trying to track this down, think I've found something.

Why does the Pluto PorletSessionImpl#setAttribute use application shop in the following situation?
This really needs explanation ala javadoc etc. Because in the spec, it clearly says that setAttribute
should use PORTLET_SCOPE as it does in the else block. This seems to be cause the session
attributes set in getWindowId in the Apache Bridges to fail in detecting the container assigned
window id, because of course the attribute gets put into APPLICATION_SCOPE and a window id
is never created.

{code}
    public void setAttribute(String name, Object value, int scope) {
    	ArgumentUtility.validateNotNull("attributeName", name);
    	if (scope == PortletSession.APPLICATION_SCOPE) {
    		httpSession.setAttribute(name, value);
    	} else {
    		httpSession.setAttribute(createPortletScopedId(name),  value);
    	}
    }
{code}

Ok, yup, changing the setAttribute calls from PortletWindowUtils#getWindowId to call the explicit
version of setAttribute(name,value,scope) and pass PortletSession.PORTLET_SCOPE lets the Apache
Bridges function work correctly. 

This points towards a Pluto issue now, not a bridges issue, so I will create another jira
issue for pluto.

For a work around, I have changed getWindowId to use 
{code}
session.setAttribute(PORTLET_WINDOW_ID, ...., PortletSession.PORTLET_SCOPE); 
{code}
in both places where it is used, and the windowId now appears to be generated on the attribute,
and detected correctly.

I have created a Pluto issue here:
https://issues.apache.org/jira/browse/PLUTO-516

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c1081290381.1224253126177.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1081290381-1224253126177-JavaMail-jira@brutus%3e</id>
<updated>2008-10-17T14:18:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12640538#action_12640538
] 

Antony Stubbs commented on PB-84:
---------------------------------

P.s. its just a basic hello world portlet application, nothing to it, deployed to pluto installed
on tomcat using pluto:install .

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c889473008.1224252044416.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c889473008-1224252044416-JavaMail-jira@brutus%3e</id>
<updated>2008-10-17T14:00:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12640536#action_12640536
] 

Antony Stubbs commented on PB-84:
---------------------------------

actually, come to think of it, the StringIndexOutOfBoundsException was probably the reason
why the Double wasnt being replaced, as the code threw the exception before it got to that
stage, and subsequent requests were retrieving the Double and getting the class cast exceptions.

But regardless, your new implementation does seem to clarify the issues.

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c231200304.1224251804725.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c231200304-1224251804725-JavaMail-jira@brutus%3e</id>
<updated>2008-10-17T13:56:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12640533#action_12640533
] 

Antony Stubbs commented on PB-84:
---------------------------------

Ok, the new code that you posted seems to do better, but I seem to have a problem where 
{code}
portletWindowId = nameRef[0].substring("javax.portlet.p.".length(),
						nameRef[0].indexOf('?'));
{code}
throws StringIndexOutOfBoundsException, because the value of nameRef[0] comes back just as
PORTLET_WINDOW_ID

i.e. "org.apache.portals.bridges.util.portlet_window_id" not "javax.portlet.p.*" as the code
implies

{code}
getPortletWindowId for session: CC465B39BA9199712DEEF690F90AE2C2 (thread: 15)
 no portletWindowId yet - going to derive it.
17/10/2008 15:44:23 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet default threw exception
java.lang.StringIndexOutOfBoundsException: String index out of range: -17
{code}

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c1063832757.1224251684379.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1063832757-1224251684379-JavaMail-jira@brutus%3e</id>
<updated>2008-10-17T13:54:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12640531#action_12640531
] 

Ate Douma commented on PB-84:
-----------------------------

Now this is getting interesting :)
Can you give some instruction steps how to reproduce this, and with which (Wicket?) application
did you test it with? 

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (PB-84) CCE in PortletWindowUtils.getPortletWindowId</title>
<author><name>&quot;Antony Stubbs (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200810.mbox/%3c354726087.1224247424391.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c354726087-1224247424391-JavaMail-jira@brutus%3e</id>
<updated>2008-10-17T12:43:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/PB-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12640511#action_12640511
] 

Antony Stubbs commented on PB-84:
---------------------------------

Hi Ate,
I've just hit this same problem with Pluto trunk no less... Am looking further into it now.

&gt; CCE in PortletWindowUtils.getPortletWindowId
&gt; --------------------------------------------
&gt;
&gt;                 Key: PB-84
&gt;                 URL: https://issues.apache.org/jira/browse/PB-84
&gt;             Project: Portals Bridges
&gt;          Issue Type: Bug
&gt;          Components: common
&gt;    Affects Versions: 1.0
&gt;         Environment: Mac OS, Wicket Portlets, OpenPortal Portlet Container
&gt;            Reporter: Tim Boudreau
&gt;         Attachments: portals-bridges-common-1.0.4.jar
&gt;
&gt;
&gt; I'm trying to get wicket portlet support working over OpenPortal.  I've hacked together
implementations of ServletContextProvider and PortletResourceURLFactory - just required exposing
WicketFilter from the Application to get the necessary data.  I can deploy a portlet, but...
&gt; I'm getting this exception. 
&gt; java.lang.ClassCastException: java.lang.Double
&gt;         at org.apache.portals.bridges.util.PortletWindowUtils.getPortletWindowId(PortletWindowUtils.java:45)
&gt; Looking at the code, this seems like a clear bug:  The method casts to String here:
&gt; (String)session.getAttribute(PORTLET_WINDOW_ID);
&gt; and if null fills in the value with an instance of Double.  If it's going to put a Double
there, it should probably not expect a String - this exception will occur any time this method
is called twice for a PortletSession, it will throw the CCE the second time it is called.
&gt; Since the value is not used, probably simply changing it to 
&gt;         Object portletWindowId = session.getAttribute(PORTLET_WINDOW_ID);
&gt; would fix it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Application Period Opens for Travel Assistance to ApacheCon US 2008</title>
<author><name>David Sean Taylor &lt;david@bluesunrise.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200809.mbox/%3c6A6F91A1-F9AA-45E7-9E37-34E1B4571B50@bluesunrise.com%3e"/>
<id>urn:uuid:%3c6A6F91A1-F9AA-45E7-9E37-34E1B4571B50@bluesunrise-com%3e</id>
<updated>2008-09-25T17:47:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The Travel Assistance Committee is taking in applications for those  
wanting
to attend ApacheCon US 2008 between the 3rd and 7th November 2008 in New
Orleans.

The Travel Assistance Committee is looking for people who would like  
to be
able to attend ApacheCon US 2008 who need some financial support in  
order to
get there. There are VERY few places available and the criteria is high,
that aside applications are open to all open source developers who  
feel that
their attendance would benefit themselves, their project(s), the ASF and
open source in general.

Financial assistance is available for flights, accomodation and entrance
fees either in full or in part, depending on circumstances. It is  
intended
that all our ApacheCon events are covered, so it may be prudent for  
those in
Europe and or Asia to wait until an event closer to them comes up -  
you are
all welcome to apply for ApacheCon US of course, but there must be
compelling reasons for you to attend an event further away that your  
home
location for your application to be considered above those closer to the
event location.

More information can be found on the main Apache website at
http://www.apache.org/travel/index.html - where you will also find a  
link to
the application form and details for submitting.

Time is very tight for this event, so applications are open now and  
will end
on the 2nd October 2008 - to give enough time for travel arrangements  
to be
made.

Good luck to all those that will apply.

Regards,

The Travel Assistance Committee



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-86) Configure StrutsPortlet error output (disable stack trace for security reason)</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200809.mbox/%3c1565955241.1222113704274.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1565955241-1222113704274-JavaMail-jira@brutus%3e</id>
<updated>2008-09-22T20:01:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ate Douma updated PB-86:
------------------------

    Fix Version/s:     (was: 1.0.4)
                       (was: 1.0.3)
                   1.0.5

&gt; Configure StrutsPortlet error output (disable stack trace for security reason)
&gt; ------------------------------------------------------------------------------
&gt;
&gt;                 Key: PB-86
&gt;                 URL: https://issues.apache.org/jira/browse/PB-86
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.3, 1.0.4
&gt;            Reporter: Joachim MÃ¼ller
&gt;            Assignee: Ate Douma
&gt;             Fix For: 1.0.5
&gt;
&gt;         Attachments: patch_PB-86.diff
&gt;
&gt;
&gt; Currently the StrutsPortlet always renders the full stack trace into the portlet when
an error occurs. This may be critical concerning security issues.
&gt; With the supplied patch the error message can be loaded via resource bundle (per portlet
). The message can contain place holders which will be replaced by specific error data.
&gt; Example:
&gt; - specify portlet resources in portlet xml:
&gt;    &lt;resource-bundle&gt;JPetstorePortletResources&lt;/resource-bundle&gt;
&gt; - specify error message inside bundle:
&gt; &lt;code&gt;
&gt; # Message to be rendered in HTML when unhandled ERROR in StrutsPortlet occured (exception).
&gt; # {ErrorCode} = will be replaced by StrutsPortletErrorContext.getErrorCode (blank if
not set)
&gt; # {ErrorMessage} = will be replaced by StrutsPortletErrorContext.getErrorMessage (blank
if not set)
&gt; # {Exception.Message} = will be replaced by StrutsPortletErrorContext.getError.getMessage
-&gt; e.g. when ServletException (blank if not set)
&gt; # {Exception.Class.Name} = will be replaced by StrutsPortletErrorContext.getError.getClass.getName
-&gt; e.g. when ServletException (blank if not set)
&gt; # {Exception.StackTrace} = will be replaced by StrutsPortletErrorContext.getError.getStackTrace
-&gt; e.g. when ServletException (blank if not set)
&gt; # former default in code:
&gt; strutsportlet.error.output=&lt;hr/&gt;&lt;h2&gt;Error&lt;/h2&gt;&lt;table border='1'&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Code&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{ErrorCode}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Message&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{ErrorMessage}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.Message}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Type&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.Class.Name}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Stacktrace&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.StackTrace}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&gt; &lt;code&gt;
&gt; If no bundle or message is specified, the patch reduces the default output to "Error"
without rendering specific error data (stack trace ...).
&gt; CAUTION: The bundle is only supplied for the JPETSTORE Portlet. All other Struts Portlet
do output only "Error" when rendering an error. This behavior can be changed in the StrutsPortlet.java
(commented).
&gt; The default configuration in the bundle supplied is to output the error information as
it was before.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (PB-86) Configure StrutsPortlet error output (disable stack trace for security reason)</title>
<author><name>&quot;Ate Douma (JIRA)&quot; &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200809.mbox/%3c2011890853.1222113584763.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2011890853-1222113584763-JavaMail-jira@brutus%3e</id>
<updated>2008-09-22T19:59:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ate Douma reassigned PB-86:
---------------------------

    Assignee: Ate Douma

&gt; Configure StrutsPortlet error output (disable stack trace for security reason)
&gt; ------------------------------------------------------------------------------
&gt;
&gt;                 Key: PB-86
&gt;                 URL: https://issues.apache.org/jira/browse/PB-86
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.3, 1.0.4
&gt;            Reporter: Joachim MÃ¼ller
&gt;            Assignee: Ate Douma
&gt;             Fix For: 1.0.3, 1.0.4
&gt;
&gt;         Attachments: patch_PB-86.diff
&gt;
&gt;
&gt; Currently the StrutsPortlet always renders the full stack trace into the portlet when
an error occurs. This may be critical concerning security issues.
&gt; With the supplied patch the error message can be loaded via resource bundle (per portlet
). The message can contain place holders which will be replaced by specific error data.
&gt; Example:
&gt; - specify portlet resources in portlet xml:
&gt;    &lt;resource-bundle&gt;JPetstorePortletResources&lt;/resource-bundle&gt;
&gt; - specify error message inside bundle:
&gt; &lt;code&gt;
&gt; # Message to be rendered in HTML when unhandled ERROR in StrutsPortlet occured (exception).
&gt; # {ErrorCode} = will be replaced by StrutsPortletErrorContext.getErrorCode (blank if
not set)
&gt; # {ErrorMessage} = will be replaced by StrutsPortletErrorContext.getErrorMessage (blank
if not set)
&gt; # {Exception.Message} = will be replaced by StrutsPortletErrorContext.getError.getMessage
-&gt; e.g. when ServletException (blank if not set)
&gt; # {Exception.Class.Name} = will be replaced by StrutsPortletErrorContext.getError.getClass.getName
-&gt; e.g. when ServletException (blank if not set)
&gt; # {Exception.StackTrace} = will be replaced by StrutsPortletErrorContext.getError.getStackTrace
-&gt; e.g. when ServletException (blank if not set)
&gt; # former default in code:
&gt; strutsportlet.error.output=&lt;hr/&gt;&lt;h2&gt;Error&lt;/h2&gt;&lt;table border='1'&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Code&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{ErrorCode}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Message&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{ErrorMessage}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.Message}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Type&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.Class.Name}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Stacktrace&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.StackTrace}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&gt; &lt;code&gt;
&gt; If no bundle or message is specified, the patch reduces the default output to "Error"
without rendering specific error data (stack trace ...).
&gt; CAUTION: The bundle is only supplied for the JPETSTORE Portlet. All other Struts Portlet
do output only "Error" when rendering an error. This behavior can be changed in the StrutsPortlet.java
(commented).
&gt; The default configuration in the bundle supplied is to output the error information as
it was before.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (PB-86) Configure StrutsPortlet error output (disable stack trace for security reason)</title>
<author><name>=?utf-8?Q?Joachim_M=C3=BCller_=28JIRA=29?= &lt;bridges-dev@portals.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/portals-bridges-dev/200809.mbox/%3c798398278.1222078244392.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c798398278-1222078244392-JavaMail-jira@brutus%3e</id>
<updated>2008-09-22T10:10:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/PB-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joachim MÃ¼ller updated PB-86:
-----------------------------

    Attachment: patch_PB-86.diff

&gt; Configure StrutsPortlet error output (disable stack trace for security reason)
&gt; ------------------------------------------------------------------------------
&gt;
&gt;                 Key: PB-86
&gt;                 URL: https://issues.apache.org/jira/browse/PB-86
&gt;             Project: Portals Bridges
&gt;          Issue Type: Improvement
&gt;          Components: struts
&gt;    Affects Versions: 1.0.3, 1.0.4
&gt;            Reporter: Joachim MÃ¼ller
&gt;             Fix For: 1.0.3, 1.0.4
&gt;
&gt;         Attachments: patch_PB-86.diff
&gt;
&gt;
&gt; Currently the StrutsPortlet always renders the full stack trace into the portlet when
an error occurs. This may be critical concerning security issues.
&gt; With the supplied patch the error message can be loaded via resource bundle (per portlet
). The message can contain place holders which will be replaced by specific error data.
&gt; Example:
&gt; - specify portlet resources in portlet xml:
&gt;    &lt;resource-bundle&gt;JPetstorePortletResources&lt;/resource-bundle&gt;
&gt; - specify error message inside bundle:
&gt; &lt;code&gt;
&gt; # Message to be rendered in HTML when unhandled ERROR in StrutsPortlet occured (exception).
&gt; # {ErrorCode} = will be replaced by StrutsPortletErrorContext.getErrorCode (blank if
not set)
&gt; # {ErrorMessage} = will be replaced by StrutsPortletErrorContext.getErrorMessage (blank
if not set)
&gt; # {Exception.Message} = will be replaced by StrutsPortletErrorContext.getError.getMessage
-&gt; e.g. when ServletException (blank if not set)
&gt; # {Exception.Class.Name} = will be replaced by StrutsPortletErrorContext.getError.getClass.getName
-&gt; e.g. when ServletException (blank if not set)
&gt; # {Exception.StackTrace} = will be replaced by StrutsPortletErrorContext.getError.getStackTrace
-&gt; e.g. when ServletException (blank if not set)
&gt; # former default in code:
&gt; strutsportlet.error.output=&lt;hr/&gt;&lt;h2&gt;Error&lt;/h2&gt;&lt;table border='1'&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Code&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{ErrorCode}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Message&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{ErrorMessage}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.Message}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Error Type&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.Class.Name}&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
valign='top'&gt;&lt;b&gt;Stacktrace&lt;/b&gt;&lt;/td&gt;&lt;td&gt;{Exception.StackTrace}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&gt; &lt;code&gt;
&gt; If no bundle or message is specified, the patch reduces the default output to "Error"
without rendering specific error data (stack trace ...).
&gt; CAUTION: The bundle is only supplied for the JPETSTORE Portlet. All other Struts Portlet
do output only "Error" when rendering an error. This behavior can be changed in the StrutsPortlet.java
(commented).
&gt; The default configuration in the bundle supplied is to output the error information as
it was before.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org



</pre>
</div>
</content>
</entry>
</feed>
