XWiki Platform
  1. XWiki Platform
  2. XWIKI-9651

Saving a new search suggest source creates a blank one and overwrites the first source

    Details

    • Difficulty:
      Trivial
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:

      • on a 5.2 install, login as Admin
      • go to Administration
      • go to Search Suggest section
      • Make sure the Solr tab is selected and click on "Add a new source"

      The first thing you notice is that the new source gets pre-filled with the values from the first source. Save and reload the page. Then you'll notice a blank new source under the Lucene tab and the first source gets overwritten with the values from the new source you wanted to add.

        Activity

        Hide
        Marius Dumitru Florea added a comment -

        The problem is a bad string-to-integer conversion in XWiki.SearchSuggestSourceSheet. This doesn't affect 5.3M1 because now the string gets automatically converted to integer when an integer is expected in a method signature. I'm going to fix this anyway.

        Show
        Marius Dumitru Florea added a comment - The problem is a bad string-to-integer conversion in XWiki.SearchSuggestSourceSheet . This doesn't affect 5.3M1 because now the string gets automatically converted to integer when an integer is expected in a method signature. I'm going to fix this anyway.

          People

          • Assignee:
            Marius Dumitru Florea
            Reporter:
            Sorin Burjan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: