Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-432

Required attribute on multivalued complex enforced when no complex added

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.2.0
    • Component/s: Widgets

      Description

      1. nuxeo-server-9.3-I20171102_1128-tomcat.zip
      2. mp-list shows:
         addon     started	nuxeo-web-ui (id: nuxeo-web-ui-1.1.3-I20171102_1414)
      3. add a string property
      4. add a multivalued complex property to a schema
      5. add 2 string properties and 1 date to the complex
      6. set both string properties as required (inside the complex)
      7. in designer generate the forms for the custom document
      8. check in the source code that both fields have the required attribute set
      9. synchronize the project on the server side
      10. try to create a custom document by filling only the string property and not adding any complex
      11. observe nothing happens
      12. check the server logs:
        2017-11-02 16:45:22,949 WARN  [http-nio-0.0.0.0-8080-exec-1] [com.sun.jersey.spi.inject.Errors] The following warnings have been detected with resource and/or provider classes:
          WARNING: A HTTP GET method, public java.lang.String org.nuxeo.elasticsearch.http.readonly.Main.searchWithPayload(javax.ws.rs.core.UriInfo,javax.ws.rs.core.MultivaluedMap) throws java.io.IOException,org.json.JSONException, should not consume any entity.
          WARNING: A HTTP GET method, public java.lang.String org.nuxeo.elasticsearch.http.readonly.Main.searchWithPayload(java.lang.String,java.lang.String,javax.ws.rs.core.UriInfo,javax.ws.rs.core.MultivaluedMap) throws java.io.IOException,org.json.JSONException, should not consume any entity.
          WARNING: A HTTP GET method, public java.lang.String org.nuxeo.elasticsearch.http.readonly.Main.searchWithPayload(java.lang.String,javax.ws.rs.core.UriInfo,javax.ws.rs.core.MultivaluedMap) throws java.io.IOException,org.json.JSONException, should not consume any entity.
        
      13. now click the add button for the complex property
      14. fill in the string fields and click ok
      15. save the form
      16. observe this time the document is created properly

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h