Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12311

Search suggestbox fails on long strings of digits

    XMLWordPrintable

    Details

    • Backlog priority:
      100

      Description

      In the quick search box type a number like 123456789012345678 and after a few seconds an error occurs:

      Caused by: java.lang.NumberFormatException: For input string: "789012345678"
      	at java.lang.NumberFormatException.forInputString(Unknown Source)
      	at java.lang.Integer.parseInt(Unknown Source)
      	at java.lang.Integer.parseInt(Unknown Source)
      	at org.nuxeo.ecm.platform.suggestbox.utils.DateMatcher.fromInput(DateMatcher.java:120)
      	at org.nuxeo.ecm.platform.suggestbox.service.suggesters.DocumentSearchByDateSuggester.suggest(DocumentSearchByDateSuggester.java:62)
      	at org.nuxeo.ecm.platform.suggestbox.service.SuggestionServiceImpl.suggest(SuggestionServiceImpl.java:82)
      	at org.nuxeo.ecm.platform.suggestbox.jsf.SuggestboxActions.getSuggestions(SuggestboxActions.java:132)
      	...
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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