Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12237

Resource: No data stored when empty file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.3, 4.9.0
    • None
    • None
    • None
    • 4.9.0 M2
    • Oui

      Original issue title: Error when applying for a job offer with an excel file

      • Connect to intranet front
      • Apply to a job offer : fill "download CV" field with an excel file
      • Send

      In logs, following error is present : 

      Caused by: javax.jcr.nodetype.ConstraintViolationException: /ametys:root/ametys-internal:sites/31/78/intranet/ametys-internal:contents/58/ec/franchet-magali-7/ametys:cv: mandatory property {http://www.jcp.org/jcr/1.0}data does not exist
          at org.apache.jackrabbit.core.ItemSaveOperation.validateTransientItems(ItemSaveOperation.java:537)
          at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:216)
          at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
          at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
          at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
          at org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveOperation.java:65)
          at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
          at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:363)
          at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:852)
          at org.ametys.plugins.repository.jcr.SimpleAmetysObject.saveChanges(SimpleAmetysObject.java:204)
          ... 99 more

            bmaurel Bérénice Maurel
            mfranchet Magali Franchet
            Bérénice Maurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: