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

Wrong behaviour if the "Description" of a Section/Branch is incorrect

VotersWatchers
    XMLWordPrintable

    Details

      Description

      Scenario 1

      1. Go to JCommune - Forum Structure, press "Create a Section"
      2. Enter a valid Section name
      3. Enter 256 symbols in "Description" field
      4. Press "Save"
        As a result the following exception is shown:
        		
        could not insert: [org.jtalks.poulpe.model.entity.PoulpeSection]; SQL [/* insert org.jtalks.poulpe.model.entity.PoulpeSection */ insert into SECTIONS (UUID, NAME, DESCRIPTION) values (?, ?, ?)]; nested exception is org.hibernate.exception.DataException: could not insert: [org.jtalks.poulpe.model.entity.PoulpeSection][SQL: 1406, 22001]

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

      Scenario 2

      1. Go to JCommune - Forum Structure, press "Create a Section"
      2. Enter a valid Section name
      3. Enter more than 256 symbols in "Description" field
      4. Press "Save"
      5. Select this Section and press "Edit"
        As a Result, "Editing a Section" window is opened with empty Description field
        Expected result: it is not possible to enter more than 256 symbols to the Description field, the message "This field may not contain more than 256 symbols" should be shown

      The same behavior happens when trying to enter more then 256 symbols to the Description field of a Branch.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  anna_s Anna Shcherbinina
                  Reporter:
                  masha nisse Maria Agapchenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

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

                      Structure Helper Panel