[JBoss JIRA] Created: (GTNPORTAL-314) Fixing oAuth in gadgets
by jerem j (JIRA)
Fixing oAuth in gadgets
-----------------------
Key: GTNPORTAL-314
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-314
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta02
Reporter: jerem j
Fix For: 3.0.0-Beta03
Right now in the gadgets, it is not possible to use backend that use an oAuth authentication.
We need to implement the oAuth Store to store the tokens into the JCR and not in memory as it is done in the default implementation (BasicOAuthStore.java)
http://fisheye6.atlassian.com/browse/shindig/trunk/java/gadgets/src/main/...
the default implementation :
http://fisheye6.atlassian.com/browse/shindig/trunk/java/gadgets/src/main/...
In this class there is 2 different things to store :
* Consumer key and secret
getConsumerKeyAndSecret()
Right now in the default implementation it is stored in a file oauth.json. This is information a user or an admin can set. I think, only admins have to set this key, so we can keep the storage in the oauth.json. If we find later that we need to often set new keys, it might be a good idea to create a specific UI for this and store it in the JCR.
If stored in the JCR, it has to be indexed by :
gadget and server
* Tokens
getTokenInfo()
setTokenInfo()
removeToken()
The default implementation store them in memory, so everytime the object is recreated, we loose the information, and so the user has to authenticate again.
We should store the information of TokenInfo into the JCR indexed by owner, viewer, gadget, server.
Be careful tokens have an expiration date, so when getting a token, we should make sure it did not expire.
To test if the implementation is working, you can try with any jira gadget that require authentication such as the watch gadget. This jira server has been configured to work with the dev version of gatein 1.0b2 :
http://jira4j.exoplatform.org/secure/Dashboard.jspa
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] Created: (GTNPORTAL-175) breadcrumbs portlet prevents navigating back to a previous page
by Matt Wringe (JIRA)
breadcrumbs portlet prevents navigating back to a previous page
---------------------------------------------------------------
Key: GTNPORTAL-175
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-175
Project: GateIn Portal
Issue Type: Bug
Components: User Interface
Environment: Gatein head (revision 479), Java 1.6, Tomcat
Reporter: Matt Wringe
If the breadcrumbs portlets is used to navigate back a page, it can prevent loading that page again.
Steps to reproduce
1) create a new page off of the home page. This page can be left blank for testing purposes
2) when this page is loaded, go back to the home page using the blue nav bar
3) go back to the new page using the blue nav bar to test that you can go between the two pages fine using this approach
4) go to the new page, and click on the home icon in the breadcrumbs porltet (grey bar)
5) try and load the new page as in step 3, the new page will not load
Expected behaviour: the new page will load just fine as it does using the blue nav bar.
Note that sometime clicking other pages in the nav bar will work properly, and clicking other links will revert the issue
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months
[JBoss JIRA] Created: (GTNPORTAL-245) Encountered an error when delete portal default and login by new portal
by Hang Nguyen (JIRA)
Encountered an error when delete portal default and login by new portal
------------------------------------------------------------------------
Key: GTNPORTAL-245
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-245
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta02
Reporter: Hang Nguyen
Steps:
* Create new portal : aaa
* Delete classic portal
* Login by new portal --> encountered an error
Throw exception:
java.lang.IllegalArgumentException: Cannot load portlet preferences portal#classic:/exoadmin/StarToo
lbarPortlet/starportlet as the corresponding portal classic with type ObjectType[interface org.gatei
n.mop.api.workspace.Site] does not exist
at org.exoplatform.portal.pom.config.tasks.PortletPreferencesTask$Load.run(PortletPreference
sTask.java:169)
at org.exoplatform.portal.pom.config.POMSession.execute(POMSession.java:210)
at org.exoplatform.portal.pom.config.POMSessionManager.execute(POMSessionManager.java:207)
at org.exoplatform.portal.pom.config.POMDataStorage.execute(POMDataStorage.java:68)
at org.exoplatform.portal.pom.config.POMDataStorage.getPortletPreferences(POMDataStorage.jav
a:142)
at org.exoplatform.portal.webui.application.UIPortlet.getPreferences(UIPortlet.java:566)
at org.exoplatform.portal.webui.application.UIPortlet.getExoPortletContext(UIPortlet.java:57
0)
at org.exoplatform.portal.webui.application.UIPortlet.create(UIPortlet.java:515)
at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecy
cle.java:156)
at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecy
cle.java:52)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:243)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:237)
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.jav
a:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.jav
a:198)
at script1253264041847.run(script1253264041847.groovy:57)
at org.exoplatform.groovyscript.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTem
plateEngine.java:128)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:68)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:109)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:68)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.webui.core.UIContainer.renderUIComponent(UIContainer.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.jav
a:170)
at script1253264042137.run(script1253264042137.groovy:58)
at org.exoplatform.groovyscript.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTem
plateEngine.java:128)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:68)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:109)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:68)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:243)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:237)
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.jav
a:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.jav
a:198)
at script1253264041847.run(script1253264041847.groovy:57)
at org.exoplatform.groovyscript.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTem
plateEngine.java:128)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:68)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:109)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:68)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRend
er(UIComponentDecorator.java:77)
at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRend
er(UIComponentDecorator.java:72)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:243)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:237)
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.jav
a:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.jav
a:198)
at script1253264041571.run(script1253264041571.groovy:14)
at org.exoplatform.groovyscript.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTem
plateEngine.java:128)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:68)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:109)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:68)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:243)
at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:237)
at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.jav
a:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.jav
a:198)
at script1253264041164.run(script1253264041164.groovy:150)
at org.exoplatform.groovyscript.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTem
plateEngine.java:128)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:68)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:109)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:68)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:102)
at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplicat
ion.java:375)
at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java
:90)
at org.exoplatform.web.WebAppController.service(WebAppController.java:121)
at org.exoplatform.portal.application.PortalController.service(PortalController.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(T
hreadLocalSessionProviderInitializedFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentit
yFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja
va:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months