<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - DOCM files can't be opened in Word after a roundtrip in Writer (until renaming)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108269">108269</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DOCM files can't be opened in Word after a roundtrip in Writer (until renaming)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.0.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Keywords</th>
          <td>filter:docx
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>michael.meeks@collabora.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>104528
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Known limitations (not a concern of this bug report):
- Writer doesn't handle VBA macros.
- It doesn't even preserve macros (seems like section "You can choose to
preserve or delete VBA macros" in [1] is not valid for newer, OOXML formats, at
least in Writer).

Open and save the attached files in Writer. Both are DOCMs created in Word
2013, one has macro, the other doesn't.
Open the roundtripped file in Word.

=> Word gives an error: "We're sorry. We can't open <file name> because we
found a problem with its contents."
The file can only be opened after renaming it to have .DOCX extension.

One particular difference is that in the original archive /word/document.xml
has ContentType "application/vnd.ms-word.document.macroEnabled.main+xml", while
in the roundtripped file it's
"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml".

Observed with 5.4beta1 and 4.0.0.3 / Windows 7.

[1] <a href="https://help.libreoffice.org/Common/Using_Microsoft_Office_and">https://help.libreoffice.org/Common/Using_Microsoft_Office_and</a></pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] FILESAVE: DOCX: Corrupted file in MSO Word after RT"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104528">Bug 104528</a>] [META] FILESAVE: DOCX: Corrupted file in MSO Word after RT
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>