Uploaded image for project: 'Poulpe'
  1. Poulpe
  2. POULPE-341

ZK error message is shown on creating a Section with incorrect name

VotersWatchers
    XMLWordPrintable

    Details

      Description

      1. Go to JCommune - Forum Structure, press "Create a Section"
      2. Type 81 or more symbols in the Name field
        As a result the following exception is shown:
        		
        Validation failed for classes [org.jtalks.poulpe.model.entity.PoulpeSection] during persist time for groups [javax.validation.groups.Default, ]
        List of constraint violations:[
        ConstraintViolationImpl{interpolatedMessage='{section.name.emptiness_constraint_violation}', propertyPath=name, rootBeanClass=class org.jtalks.poulpe.model.entity.PoulpeSection, messageTemplate='{section.name.emptiness_constraint_violation}'}
        ]

        Expected result: it is possible to create a section with name lenght in (0;80] and the message "This field may not contain more than 80 symbols" should be shown if more than 80 symbols are entered

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  masha nisse Maria Agapchenko
                  Reporter:
                  masha nisse Maria Agapchenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1h
                    1h
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 1h
                    1h

                      Structure Helper Panel