<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 - Saved file has wrong group if calc file contains a chart. (Truly bizarre ...)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125048">125048</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Saved file has wrong group if calc file contains a chart. (Truly bizarre ...)
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

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

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

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

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nigel.arnot@silson.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=151094" name="attach_151094" title="The spreadsheet "nobug.ods" which is used at the start of the bug report description">attachment 151094</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=151094&action=edit" title="The spreadsheet "nobug.ods" which is used at the start of the bug report description">[details]</a></span>
The spreadsheet "nobug.ods" which is used at the start of the bug report
description

This is a truly bizarre bug that I've spent a lot of time diagnosing and
reducing to a simple case. This description is quite long. Please bear with me.

You need an unusual folder on an NFS share. Here, we have a group called
"silson". My username is "nigel". The folder has the group sticky bit set, so
that files are created with group silson and everybody in  that group shares
write access. Here is the set-up for folder "test". I don't think the acls are
relevant, but included just in case. 

[root@hermes Silson Library]# ls -ld test
drwxrwsr-x+ 2 nigel silson 4096 Apr 30 15:29 test
[root@hermes Silson Library]# getfacl test
# file: test
# owner: nigel
# group: silson
user::rwx
group::rwx
mask::rwx
other::r-x
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::r-x

Now, open the attached file and save it into this folder with libreoffice calc,
as "nobug"

Now, insert a chart. Select A1:B8. Insert|Chart. X-Y scatter, Points & Lines,
Finish. Save as "bug"

Click on the chart and press backspace to delete it. Save as "fixedbug"

The file protections are:

ls test/* -l
-rw-rw-r--+ 1 nigel nigel  14994 Apr 30 15:37 test/bug.ods
-rw-rw-r--+ 1 nigel silson  9050 Apr 30 15:38 test/fixedbug.ods
-rw-rw-r--+ 1 nigel silson  9056 Apr 30 15:34 test/nobug.ods

It's the presence of a chart that makes the file get saved with group=nigel
instead of group=silson. It can be a chart hidden away on a different
work-sheet that nobody ever looks at ....

The bug was not present in the libreoffice shipped with Fedora 27:
5.4.7.2-3.fc27.x86_64. It appeared after upgrading to Fedora 29,
6.1.5.2-5.fc29.x86_64</pre>
        </div>
      </p>


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

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