Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-616 Migration from phpbb to jcommune database.
  3. JC-987

Error 500 when user tries to view the migrated topic with title less than 5 symbols

VotersWatchers
    XMLWordPrintable

    Details

      Description

      How to check:
      Try to open any topic where the title is less than 5 symbol (e.g. any FAQ)

      Select *
      from TOPIC
      where LENGTH(title) <5;
      /* 0 rows affected, 125 rows found. Duration for 1 query: 0,109 sec. */

      Expected result:
      Topic can be viewed by users

      Data Example:
      http://javatalks.jtalks.org/jcommune/topics/1627

      Exception from jcommune-application.log (full text attached):
      2012-09-20 16:36:05,295 [WARN ][http-8106-19 ][ ..jcommune] - Handler execution resulted in exception
      javax.validation.ConstraintViolationException: Validation failed for classes [org.jtalks.jcommune.model.entity.Topic] during update time for groups [javax.validation.groups.Default, ]
      List of constraint violations:[
      ConstraintViolationImpl{interpolatedMessage='Размер должен быть между 5 и 120', propertyPath=title, rootBeanClass=class org.jtalks.jcommune.model.entity.Topic, messageTemplate='

      {javax.validation.constraints.Size.message}

      '}
      ]

        Attachments

          Structure

            Activity

              People

              • Assignee:
                kitsune Polina
                Reporter:
                kitsune Polina
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0.25h Original Estimate - 0.25h
                  0.25h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h

                    Structure Helper Panel