[jira] [Updated] (SYNCOPE-1209) Syncope console GUI does not allow uploading binary type with file size > 65KB

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (SYNCOPE-1209) Syncope console GUI does not allow uploading binary type with file size > 65KB

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SYNCOPE-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Chicchiriccò updated SYNCOPE-1209:
--------------------------------------------
    Environment: MariaDB

> 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
>         Environment: MariaDB
>            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:
> {code}
>   <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"/>
> {code}
> 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, note that we're using MariaDB.
> 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)