<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 - FILESAVE PPTX Creating hyperlink to a slide with shortened name results in invalid file"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142648">142648</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE PPTX Creating hyperlink to a slide with shortened name results in invalid file
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>7.2.0.0 alpha1+ Master
          </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:pptx, implementationError
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Impress
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>libreoffice@nisz.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>nagy.tibor2@nisz.hu, nemeth@numbertext.org, varga.balazs3@nisz.hu
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>104787, 139896
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=172615" name="attach_172615" title="Example file from PowerPoint">attachment 172615</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=172615&action=edit" title="Example file from PowerPoint">[details]</a></span>
Example file from PowerPoint

Attached PP-made file contains a slide with a too long title that is shortened
to Slide 1 and another slide with a shorter title.
There is a hyperlink on the first slide to the second, this opens and
roundtrips correctly.
If I create a new internal hyperlink pointing from the second slide to the
first, filesave to PPTX will create an invalid file.

As a counter test I’ll attach another version of the example file with shorter
title that is not shortened to Slide 1.
Creating an internal hyperlink from the second slide to the first creates a
valid PPTX with correctly working hyperlink.

Steps to reproduce:
    1. Open attached file
    2. Go to the second slide, select the text in the lower half.
    3. Press Ctrl+K to open the Hyperlink dialog, select Document on the left
    4. Press the Target icon under Target in Document
    5. Select “Slide 1” in the dialog, press OK
    6. Save as PPTX, open the file in PowerPoint

Actual results:
PowerPoint finds invalid contents in the file.
Reopening the file in Impress also loses the hyperlink just made.

Expected results:
Working hyperlink, no invalid contents.

LibreOffice details:
Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 3b57ebb445df8a2bc3d916ea79f8af45e20e4e62
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL</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] Saved PPTX files that MS Powerpoint can't open"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104787">Bug 104787</a>] [META] Saved PPTX files that MS Powerpoint can't open
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] PPTX Hyperlink issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139896">Bug 139896</a>] [META] PPTX Hyperlink issues
              </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>