Forums de discussion

Liferay7 Search Result - URI was too long

thumbnail
Sai Mohan Gadamsetty, modifié il y a 7 années.

Liferay7 Search Result - URI was too long

Junior Member Publications: 92 Date d'inscription: 06/02/13 Publications récentes
Hello everyone,

When I try to navigate on search result link I'm getting below exception
!URI Too Long!
Reproduced steps:

* Search for keyword "extranet"
* Click on any category (in my scenario its "Announcemnts"
* Then click on any search navigation linke then I get above error

I tried by changing below property (server.xml) but no luck

maxHttpHeaderSize="65536"

Generated URI

http://10.10.1.55:8080/c/document_library/find_file_entry?p_l_id=35266&noSuchEntryRedirect=http%3A%2F%2F10.10.1.55%3A8080%2Fweb%2Fextranet%2Fhome%3Fp_p_id%3Dcom_liferay_portal_search_web_portlet_SearchPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26_com_liferay_portal_search_web_portlet_SearchPortlet_mvcPath%3D%252Fview_content.jsp%26_com_liferay_portal_search_web_portlet_SearchPortlet_redirect%3Dhttp%253A%252F%252F10.10.1.55%253A8080%252Fweb%252Fextranet%252Fhome%253Fp_p_id%253Dcom_liferay_portal_search_web_portlet_SearchPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifieddayTo%253D28%2526_com_liferay_portal_search_web_portlet_SearchPortlet_cur%253D1%2526_com_liferay_portal_search_web_portlet_SearchPortlet_mvcPath%253D%25252Fsearch.jsp%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedyearTo%253D2016%2526_com_liferay_portal_search_web_portlet_SearchPortlet_keywords%253Dextranet%2526_com_liferay_portal_search_web_portlet_SearchPortlet_entryClassName%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_formDate%253D1480349898809%2526_com_liferay_portal_search_web_portlet_SearchPortlet_searchPrimaryKeys%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_groupId%253D33084%2526_com_liferay_portal_search_web_portlet_SearchPortlet_format%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifieddayFrom%253D27%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedyearFrom%253D2016%2526_com_liferay_portal_search_web_portlet_SearchPortlet_userName%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedfrom%253D11%25252F27%25252F2016%2526_com_liferay_portal_search_web_portlet_SearchPortlet_folderId%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_assetCategoryIds%253D40228%2526_com_liferay_portal_search_web_portlet_SearchPortlet_scope%253Dthis-site%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedselection%253D0%2526_com_liferay_portal_search_web_portlet_SearchPortlet_assetTagNames%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modified%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedmonthTo%253D10%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedmonthFrom%253D10%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedto%253D11%25252F28%25252F2016%26_com_liferay_portal_search_web_portlet_SearchPortlet_assetEntryId%3D40235%26_com_liferay_portal_search_web_portlet_SearchPortlet_type%3Ddocument%26redirect%3Dhttp%253A%252F%252F10.10.1.55%253A8080%252Fweb%252Fextranet%252Fhome%253Fp_p_id%253Dcom_liferay_portal_search_web_portlet_SearchPortlet%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifieddayTo%253D28%2526_com_liferay_portal_search_web_portlet_SearchPortlet_cur%253D1%2526_com_liferay_portal_search_web_portlet_SearchPortlet_mvcPath%253D%25252Fsearch.jsp%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedyearTo%253D2016%2526_com_liferay_portal_search_web_portlet_SearchPortlet_keywords%253Dextranet%2526_com_liferay_portal_search_web_portlet_SearchPortlet_entryClassName%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_formDate%253D1480349898809%2526_com_liferay_portal_search_web_portlet_SearchPortlet_searchPrimaryKeys%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_groupId%253D33084%2526_com_liferay_portal_search_web_portlet_SearchPortlet_format%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifieddayFrom%253D27%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedyearFrom%253D2016%2526_com_liferay_portal_search_web_portlet_SearchPortlet_userName%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedfrom%253D11%25252F27%25252F2016%2526_com_liferay_portal_search_web_portlet_SearchPortlet_folderId%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_assetCategoryIds%253D40228%2526_com_liferay_portal_search_web_portlet_SearchPortlet_scope%253Dthis-site%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedselection%253D0%2526_com_liferay_portal_search_web_portlet_SearchPortlet_assetTagNames%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modified%253D%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedmonthTo%253D10%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedmonthFrom%253D10%2526_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedto%253D11%25252F28%25252F2016&fileEntryId=40233&inheritRedirect=true

Pièces jointes:

thumbnail
Sai Mohan Gadamsetty, modifié il y a 7 années.

RE: Liferay7 Search Result - URI was too long

Junior Member Publications: 92 Date d'inscription: 06/02/13 Publications récentes
Can any one please advise your thoughts on this issue.
thumbnail
Sai Mohan Gadamsetty, modifié il y a 7 années.

RE: Liferay7 Search Result - URI was too long

Junior Member Publications: 92 Date d'inscription: 06/02/13 Publications récentes
Can any one has this issue with Liferay 7... since its very basic scenario with search process....
thumbnail
Jorge Díaz, modifié il y a 7 années.

RE: Liferay7 Search Result - URI was too long

Liferay Master Publications: 753 Date d'inscription: 09/01/14 Publications récentes
Hi Sai,

I think your issue is LPS-70118 or LPS-68071

As a workaround, you can try configuring both:
thumbnail
Sai Mohan Gadamsetty, modifié il y a 7 années.

RE: Liferay7 Search Result - URI was too long

Junior Member Publications: 92 Date d'inscription: 06/02/13 Publications récentes
Hi Jorge Diaz,

Thanks very much on your feedback. Your solution worked for me, but Liferay is generating 4000+ character Get request URL to navigate search result its huge. I do understand it contains redirectURL to take user back to the search result page. But in the previous version(s) of Liferay this URL is not this much huge.

I'm surprised that why Liferay mentioned (in portal.properties doc) technical issues if we use more than this numbe?. Does it affect any where in the portal. Please advise.

This error will not come if you remove Modified Date from search portlet configuration. *Modified Date* option is appending more information to the URL.
thumbnail
Jorge Díaz, modifié il y a 7 années.

RE: Liferay7 Search Result - URI was too long

Liferay Master Publications: 753 Date d'inscription: 09/01/14 Publications récentes
Changing invoker.filter.uri.max.length is just a workaround and it isn't the best solution.

Your issue seems to be resolved by LPS-70118.
That Jira issue is committed in master branch, you can see the code here: https://github.com/brianchandotcom/liferay-portal/pull/46726

The issue will be backported to 7.0 branch, but there is not estimated date to that backport.

In order to solve your issue, you have several options:
  • option 1) Apply workaround and wait until LPS code is backported to 7.0 and released in next 7.0 GA version
  • option 2) pick master branch code and try patching 7.0 by your own
  • option 3) purchase official Liferay support and ask for a official hotfix
thumbnail
Sai Mohan Gadamsetty, modifié il y a 7 années.

RE: Liferay7 Search Result - URI was too long

Junior Member Publications: 92 Date d'inscription: 06/02/13 Publications récentes
Hi Jorge Díaz,

Thanks very much on your quick reply. Your advises help to me alot to identify fix on this issue.