<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>353512</bug_id>
          
          <creation_ts>2015-10-03 23:41:30 +0000</creation_ts>
          <short_desc>Baloo considers docx, xlsx, pptx as application/zip and doesn&apos;t index them</short_desc>
          <delta_ts>2016-03-13 09:56:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-baloo</product>
          <component>general</component>
          <version>5.19.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Guido">guido.iodice</reporter>
          <assigned_to name="Vishesh Handa">me</assigned_to>
          <cc>aspotashev</cc>
    
    <cc>jpdraw</cc>
    
    <cc>pinak.ahuja</cc>
    
    <cc>rdieter</cc>
          
          <cf_commitlink>http://commits.kde.org/baloo/f7a045919c091925314b7ab3125c575884792048</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1547825</commentid>
    <comment_count>0</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2015-10-03 23:41:30 +0000</bug_when>
    <thetext>[guido@guido-hp Documenti]$ balooshow -x *.docx
68695012602284036 2052 15994304 /home/guido/Documenti/cancella2.docx

Internal Info
Terms: Mapplication Mzip T1 
File Name Terms: Fcancella2 Fdocx cancella2 docx 
XAttr Terms: 

68706239646795780 2052 15996918 /home/guido/Documenti/cancella3.docx

Internal Info
Terms: Mapplication Mzip T1 
File Name Terms: Fcancella3 Fdocx cancella3 docx 
XAttr Terms: 

68682853549869060 2052 15991473 /home/guido/Documenti/demo.docx

Internal Info
Terms: Mapplication Mzip T1 
File Name Terms: Fdemo Fdocx demo docx 
XAttr Terms: 


Reproducible: Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548048</commentid>
    <comment_count>1</comment_count>
    <who name="Vishesh Handa">me</who>
    <bug_when>2015-10-05 08:37:18 +0000</bug_when>
    <thetext>Confirmed :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1549841</commentid>
    <comment_count>2</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2015-10-11 14:33:45 +0000</bug_when>
    <thetext>Baloo 5.15 doesn&apos;t solve the bug.

I can add this:

1. baloo_file properly recognize them as openxml (or application/wps office if I install WPS office) files but baloo_file_extractor recognize them as zip (doesnt matter if docx is created by WPS, Libreoffice or MS Word). 
2. baloo_file_extractor recognize .doc created by WPS office as MS OLE files while properly recognize .doc created by libreoffice as Word documents.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1557834</commentid>
    <comment_count>3</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2015-11-17 21:29:43 +0000</bug_when>
    <thetext>baloo 5.16 doesn&apos;t solve the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1564989</commentid>
    <comment_count>4</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2015-12-21 00:26:37 +0000</bug_when>
    <thetext>baloo 5.17 doesnt solve the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1568799</commentid>
    <comment_count>5</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2016-01-10 23:18:34 +0000</bug_when>
    <thetext>baloo 5.18 doesnt solve the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577117</commentid>
    <comment_count>6</comment_count>
    <who name="Guido">guido.iodice</who>
    <bug_when>2016-02-16 23:27:00 +0000</bug_when>
    <thetext>baloo 5.19 doesnt solve the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1580650</commentid>
    <comment_count>7</comment_count>
    <who name="">jpdraw</who>
    <bug_when>2016-03-07 07:54:34 +0000</bug_when>
    <thetext>Same here, however not sure if the file is not indexed. When I add a new docx file, balooctl status will show that the new file was indexed, but it will not be found later.

Txt files and Doc files (after adding catdoc) work well.

Please fix this, it is extremely important to be able to search among docx files (75% of files that I received are in this format)

Thanks

Jose</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1582202</commentid>
    <comment_count>8</comment_count>
    <who name="Pinak Ahuja">pinak.ahuja</who>
    <bug_when>2016-03-13 09:56:48 +0000</bug_when>
    <thetext>Git commit f7a045919c091925314b7ab3125c575884792048 by Pinak Ahuja.
Committed on 13/03/2016 at 09:53.
Pushed by pinakahuja into branch &apos;master&apos;.

Check both, filename and filecontent to determine mimetype

Checking only filecontent is not enough for proper mimetypes
and can lead to strange mimetypes which mess up our content
indexing.
Reviewed by: Bhushan Shah &lt;bshah@kde.org&gt;, Boudhayan Gupta &lt;bgupta@kde.org&gt;

M  +1    -1    src/file/extractor/app.cpp
M  +1    -1    src/tools/balooctl/indexer.cpp
M  +1    -1    tests/file/indexerconfigtest.cpp

http://commits.kde.org/baloo/f7a045919c091925314b7ab3125c575884792048</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>