Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-8029

Duplicate com.liferay.portal.upload.LiferayFileItem.threshold.size key in portal-ext.properties causes web content edits to fail


    • Type: Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.2.3, 6.0.6 GA, 6.0.X EE, 6.1.0 CE RC1, 6.2.0 CE M3
    • Fix Version/s: None
    • Labels:
    • Environment:
      Tomcat 6.0.32 + MySQL 5. 6.0.x Revision 87005.
      Tomcat 6.0.32 + MySQL 5. 6.1.x Revision 86995.
    • Branch Version/s:


      If for whatever reason you accidentally set com.liferay.portal.upload.LiferayFileItem.threshold.size twice in portal-ext.properties with different values you will no longer be able to edit web content inside Liferay.

      Steps to reproduce:
      1. Add the following lines to portal-ext.properties:

      (I don't think the actual values matter, what is important is that you have it set twice in your property file.)
      2. Attempt to edit any web content on your site.
      3. Modify the web content and then hit Save.

      Expected Result: The web content and your changes are saved successfully.

      Actual Result: You are redirected to the web content page again but the ID shows up as the text "Auto Generated ID". Your changes are not saved and you are not able to edit any web content.
      This is especially unfortunate because I could find no discernible error in any log file warning me of any issue.

      Now obviously no property should be set twice in a property file anyway, but if this does accidentally happen for whatever reason I would prefer either some sort of warning or a more graceful way of handling the problem.

      Please let me know if you need any more information.




            • Assignee:
              support-lep@liferay.com SE Support
              seanmcclelland Sean McClelland (Inactive)
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: