Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 CE RC5
    • Fix Version/s: 6.2.0 CE RC6
    • Component/s: User Management
    • Labels:
      None
    • Environment:
      * Liferay Portal: Liferay Portal CE 6.2 CE RC5

      * O/S: Mac OS X 10.8.5

      * Java:
      ** Apple Java 1.6.0_35
      ** Apple Java 1.6.0_51
      ** Oracle Java 1.7.0_21

      * Database: MySQL 5.5.17
    • Similar Issues:
      Show 5 results 

      Description

      Issue

      Unable to change user profile image.

      Test Case

      Test Environment

      • Liferay Portal: Liferay Portal CE 6.2 CE RC5
        • "Liferay Portal Community Edition 6.2.0 CE RC5 (Newton / Build 6200 / October 18, 2013)"
      • O/S: Mac OS X 10.8.5
      • Java:
        • Apple Java 1.6.0_35
        • Apple Java 1.6.0_51
        • Oracle Java 1.7.0_21
      • Database: MySQL 5.5.17

      Portal EXT Properties

          jdbc.default.driverClassName=com.mysql.jdbc.Driver
          jdbc.default.url=jdbc:mysql://localhost/lp6120rc5?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
          jdbc.default.username=USER
          jdbc.default.password=PASS
      

      MySQL Database Schema

      create database lp6120rc5 default character set 'utf8' default collate 'utf8_general_ci';
      

      Liferay Portal Runtime System Properties

      java.home /Library/Java/JavaVirtualMachines/1.6.0_35-b10-428.jdk/Contents/Home 
      

      Test Steps

      1/ Sign in to Liferay Portal 6.2 CE RC5 as admin user

      2/ Create new user with default password

      3/ Navigate to "Edit User XXX > Details" for mew user

      4/ Click "Change" button under user profile image.

      Portal displays "Upload image page".

      NOTE: Image is blank by default.

      5/ Click Browse button and select image.

      Image can be PNG or JPEG of any reasonable dimensions (eg. 100x100, 250x300)

      Portal displays image with adjustable bounding box.

      6/ Click Save button.

      7/ Portal displays error message - "Users and Organizations is temporarily unavailable."

      8/ Test Outcome: FAIL

      Unable to change user profile image due to Java AWT error

      14:30:10,157 ERROR [http-bio-8080-exec-7][render_portlet_jsp:132] null
      java.awt.image.RasterFormatException: (x + width) is outside of Raster
              at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1270)
              at java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1166)
      

      Tomcat Log Snippet

      14:12:04,213 ERROR [http-bio-8080-exec-9][render_portlet_jsp:132] null
      java.awt.image.RasterFormatException: (x + width) is outside of Raster
      	at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1270)
      	at java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1166)
      	at com.liferay.portlet.portalsettings.action.EditCompanyLogoAction.getCroppedRenderedImage(EditCompanyLogoAction.java:205)
      	at com.liferay.portlet.portalsettings.action.EditCompanyLogoAction.saveTempImageFile(EditCompanyLogoAction.java:261)
      	at com.liferay.portlet.usersadmin.action.EditUserPortraitAction.processAction(EditUserPortraitAction.java:63)
      	at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:166)
      	at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:216)
      	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
      	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
      	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:618)
      	at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:649)
      	at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:312)
      	at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:402)
      	at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:110)
      	at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:109)
      	at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:75)
      	at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:115)
      	at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:356)
      	at com.liferay.portal.action.LayoutAction.doExecute(LayoutAction.java:178)
      	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:79)
      

        Activity

        Hide
        Mika Koivisto added a comment -

        Works with latest master (00cdc4a9b788eb66a347d630eaa0bea5c8833378)

        Show
        Mika Koivisto added a comment - Works with latest master (00cdc4a9b788eb66a347d630eaa0bea5c8833378)
        Hide
        Edward Gonzales added a comment -

        Thanks Mika!

        Show
        Edward Gonzales added a comment - Thanks Mika!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 19 weeks, 2 days ago

              Development

                Structure Helper Panel