Details

    • Development Priority:
      High
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:

      • Attach an mp3 file or text file on a page.
      • go to Search Page, and at the "Type" option, select Attachment
      • leave the option for "File Type" to All
      • Search using a part of your file name. You will see it in the results.
      • filter for "File Type" and select Audio or Text file. Search again. You will get no results.
        It seems that ATM, there is no option to filter by file types.

        Activity

        Hide
        Thomas Mortagne added a comment - - edited

        Did you tried that with a .txt file for example ? It's very possible the real issue here is that mp3 mime type was not correctly guess by the servlet. I refactored the way to guess the mime type (XWIKI-3249) so it worth a retry.

        Show
        Thomas Mortagne added a comment - - edited Did you tried that with a .txt file for example ? It's very possible the real issue here is that mp3 mime type was not correctly guess by the servlet. I refactored the way to guess the mime type ( XWIKI-3249 ) so it worth a retry.
        Hide
        Manuel Smeria added a comment -

        I tried with all 4 file types on 5.2RC1 and it still doesn't work. For example for Text files: If I search without any filter I get the result I'm looking for with this summary "File of type text/plain", but if I choose Text as the file type I get no results. This behaviour is the same for all file types: once you choose a file type you get no results for any query.

        Show
        Manuel Smeria added a comment - I tried with all 4 file types on 5.2RC1 and it still doesn't work. For example for Text files: If I search without any filter I get the result I'm looking for with this summary "File of type text/plain", but if I choose Text as the file type I get no results. This behaviour is the same for all file types: once you choose a file type you get no results for any query.
        Hide
        Marius Dumitru Florea added a comment -

        The file type filter value shouldn't be escaped (quoted) because it contains a wildcard character.

        Show
        Marius Dumitru Florea added a comment - The file type filter value shouldn't be escaped (quoted) because it contains a wildcard character.

          People

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

            Dates

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