syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anh Tuan Nguyen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SYNCOPE-1209) Syncope console GUI does not allow uploading binary type with file size > 65KB
Date Tue, 19 Sep 2017 04:24:00 GMT
Anh Tuan Nguyen created SYNCOPE-1209:
----------------------------------------

             Summary: Syncope console GUI does not allow uploading binary type with file size
> 65KB
                 Key: SYNCOPE-1209
                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1209
             Project: Syncope
          Issue Type: Bug
          Components: console
    Affects Versions: 2.0.1
            Reporter: Anh Tuan Nguyen
         Attachments: core-rest.log, syncope_hang_with_large_image.JPG, syncope_logs.tar.gz

1/ I added a new binary schema to user as follow:
  <SyncopeSchema id="avatar"/>
  <PlainSchema id="avatar" mandatoryCondition="false" mimeType="image/gif,image/jpeg,image/png"
multivalue="0" readonly="0" type="Binary" uniqueConstraint="0" ANYTYPECLASS_ID="BaseUser"
validatorClass="org.apache.syncope.core.persistence.jpa.attrvalue.validation.EPGImageValidator"/>

Now when I create new user and upload avatar, it only allows image with 65KB which is too
small and not customizable.

This is because generated type is for binary is Blob with maximum length of 65,535 bytes.

2/ Also, when image with size > 65KB but < 4MB is uploaded, user creation just stops
at Finish without error message.
When an image with size > 4MB, Next button in the wizard doesn't respond anymore in Chrome,
and no error message. In Firefox, it keeps loading forever.
Is it possible to handle that scenario properly? At least we should have some decent error
message.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message