Foren

Issues with IE9

thumbnail
Sergio Cabrera, geändert vor 11 Jahren.

Issues with IE9

Junior Member Beiträge: 68 Beitrittsdatum: 19.12.11 Neueste Beiträge
Hello. I'm developing my project with LR6.0.6. Of course, it works perfectly in FF and Chrome, but here we have our MS friends with IE giving headaches. Apart from themes modifications to get a right user interface, I've found (at this moment) two errors in IE9 and I'd like to share them with you (they work fine in IE8):

1 - Facebook connection URL. My code:

					<portlet:renderurl var="facebookRedirectURL">
						<portlet:param name="struts_action" value="/login/facebook_connect_add_user" />
					</portlet:renderurl>
	
					<portlet:actionurl var="facebookConnectURL">
						<portlet:param name="struts_action" value="/login/facebook_connect" />
						<portlet:param name="redirect" value="<%= facebookRedirectURL %>" />
					</portlet:actionurl>					

					<liferay-ui:icon-list>
						<liferay-ui:icon src="<%=themeDisplay.getPathThemeImages() + &quot;/home/icoFacebook.png&quot;%>" message="usa-tu-usuario-facebook" url="<%= facebookConnectURL %>" />
					</liferay-ui:icon-list>


As I say, it works in FF and IE8, but in IE9 we get our famous "unavailable" due to:

07:34:01,561 WARN  [PortletRequestProcessor:160] This URL can only be invoked using POST: /web/guest/home?p_auth=ANW4FQcV&amp;p_p_id=58&amp;p_p_lifecycle=1&amp;p_p_state=maximized&amp;p_p_mode=view&amp;_58_struts_action=%2Flogin%2Ffacebook_connect&amp;_58_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D58%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_58_struts_action%3D%252Flogin%252Ffacebook_connect_add_user
07:34:01,619 ERROR [jsp:154] com.liferay.portal.security.auth.PrincipalException: /web/guest/home?p_auth=ANW4FQcV&amp;p_p_id=58&amp;p_p_lifecycle=1&amp;p_p_state=maximized&amp;p_p_mode=view&amp;_58_struts_action=%2Flogin%2Ffacebook_connect&amp;_58_redirect=http%3A%2F%2Flocalhost%3A8080%2Fweb%2Fguest%2Fhome%3Fp_p_id%3D58%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_58_struts_action%3D%252Flogin%252Ffacebook_connect_add_user
	at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:165)
	at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:186)
	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652)
	at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:687)
	at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:360)
	at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:784)
	at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:582)
	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:232)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:153)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)


2 - In a submit button:

	<portlet:actionurl name="addPlan" var="addPlanURL" />
	
	<aui:form action="<%=addPlan.toString() %>" method="post">
		<aui:fieldset>
			<aui:input name="name" size="80" />
			<aui:input type="textarea" name="description" />
			<aui:input type="checkbox" name="isShared" />
			<aui:input type="hidden" name="isPublic" value="<%=true %>" />
			<aui:input type="hidden" name="state" value="<%=MyConstants.OPENED %>" />
			
			<aui:button-row>
				<aui:button type="submit" />
			</aui:button-row>
		</aui:fieldset>
	</aui:form>


I click the submit button and:

07:41:21,937 ERROR [JDBCExceptionReporter:101] Batch entry 0 update Counter set currentId='2' where name='com.liferay.portal.model.Layout#54501#true' was aborted.  Call getNextException to see the cause.
07:41:21,941 ERROR [JDBCExceptionReporter:101] ERROR: no se pudo serializar el acceso debido a dependencias read/write entre transacciones
(I translate: Access couldn't be serialized due to read/write dependencies between transactions)
  Detail: Reason code: Canceled on identification as a pivot, during write.
  Hint: La transacción podría tener éxito si es reintentada.
(I translate: Transaction could be successufll if you retry


The good news is tha I've found a workaround in some forums. In my portal_normal.vm I've put this in the <head> section:

<meta http-equiv="X-UA-Compatible" content="IE=8" />

Now it works, but I think it's not the best solution. Is there any other solution full compatible with IE9?

Thanks!
Hiral Ramavat, geändert vor 11 Jahren.

RE: Issues with IE9

Regular Member Beiträge: 103 Beitrittsdatum: 13.02.12 Neueste Beiträge
I am not sure, i think in the below forum post, same issue is there. And there is a solution for that also by overriding some features. You can try with that one.

http://www.liferay.com/community/forums/-/message_boards/message/3691379

Hope it will help you.

Thanks,
Hiral
thumbnail
Sergio Cabrera, geändert vor 11 Jahren.

RE: Issues with IE9

Junior Member Beiträge: 68 Beitrittsdatum: 19.12.11 Neueste Beiträge
Thank you for your answer. I already had seen that post and I didn't get it working, but I found a workaround that does the trick, though it should be something temporal. I included in my <head>:

<meta http-equiv="X-UA-Compatible" content="IE=8">


I can't use IE9 specific code but the rest is working.
Kavita Gupta, geändert vor 11 Jahren.

RE: Issues with IE9

Junior Member Beiträge: 64 Beitrittsdatum: 12.03.08 Neueste Beiträge
Hi,

Your 1st problem is common for IE9.

This problem generally comes when you have a href link and that href link check some permission from java side then it give Principle Exception error.

If you convert href link to button then it work fine.

Regards,
Kavita
thumbnail
Sergio Cabrera, geändert vor 11 Jahren.

RE: Issues with IE9

Junior Member Beiträge: 68 Beitrittsdatum: 19.12.11 Neueste Beiträge
Then I suppose that Liferay's login portlet isn't working in IE9, at least the one for 6.0.6