Bug 120361 - LO creates file "Berend_Ilko_Tom_Stella_Volker.stc"
Summary: LO creates file "Berend_Ilko_Tom_Stella_Volker.stc"
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.6.2 release
Hardware: All Windows (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard: target:6.3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-06 12:17 UTC by Larsen
Modified: 2019-03-27 11:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larsen 2018-10-06 12:17:59 UTC
Description:
Today I noticed that a file "Berend_Ilko_Tom_Stella_Volker.stc" had been created in my working directory.

This file contains the contents of another file (a spreadsheet) that I was working on around the time the stc-file was created. I only edited one cell and exported a selection as a PDF.

I wasn't able to reproduce how this file got created. A search for the file name brought up an old thread: https://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&p=18108


Steps to Reproduce:
n.a.

Actual Results:
A file was created.

Expected Results:
Probably this file shouldn't have been created.


Reproducible: Couldn't Reproduce


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Comment 1 Buovjaga 2018-10-06 13:08:21 UTC
The code: https://opengrok.libreoffice.org/xref/core/wizards/source/template/Samples.xba#23
Const aTempFileName = "Berend_Ilko_Tom_Stella_Volker.stc"

It is some BASIC programming sample.
Comment 2 Xisco Faulí 2018-11-08 13:21:49 UTC
Hello Larsen,
Do you remember if you were executing some macros when the file was created?
The only reasonable way I find that file was created is because your executed Samples.xba.
Setting to NEEDINFO for the time being...
Comment 3 Larsen 2018-11-08 14:04:10 UTC
I don't use macros, and I don't recall executing it in some way. The editing I made was pretty simple, so I guess the chances of accidentally executing a macro are low.
Comment 4 Xisco Faulí 2018-11-08 14:05:48 UTC
if you delete it, do you get the document created again ?
Comment 5 Larsen 2018-11-08 14:36:08 UTC
No, I wasn't able to reproduce this.
Comment 6 Xisco Faulí 2018-11-08 14:38:42 UTC
Ok, let's get it closed as RESOLVED WORKSFORME for now. Please put it back to UNCONFIRMED if you reproduce it again.
Thanks!
Comment 7 himajin100000 2018-11-08 15:23:19 UTC
The variable indicated in comment 1 by buovjaga 
is used by SaveCurrentStyles
called by ShowStyles 
at https://opengrok.libreoffice.org/xref/core/wizards/source/template/Samples.xba?r=da543e4e#56 
called by a statement in the following switch statement
https://opengrok.libreoffice.org/xref/core/sc/source/ui/app/scmod.cxx?r=87c06415#361

SID_CHOOSE_DESIGN can be used if there is uno:ChooseDesign
https://opengrok.libreoffice.org/xref/core/sc/sdi/scalc.sdi?r=4e729de7#523

and the command is placed here in main menu.
https://opengrok.libreoffice.org/xref/core/sc/uiconfig/scalc/menubar/menubar.xml?r=5d2ab49c#430

I believe STR will include this menu or the similar toolbar item if any.

on my first try, somehow I could not reproduce this issue, 

but after editing the following file and restored its original content 

share\basic\Template\Samples.xba

restarting LibreOffice Calc

and clicking the menu

I was able to reproduce this issue. the file was created. I don't know why this failed on my first try.
Comment 8 Buovjaga 2018-11-08 15:37:15 UTC
Thanks, himajin.
Comment 9 himajin100000 2018-11-08 15:45:37 UTC
additional comment: It seems the file is gone after clicking OK in the "Theme Selection" Dialog. (the code doesn't seem to remove this file at least to me, though)
Comment 10 Xisco Faulí 2019-01-21 14:48:17 UTC
Patch in gerrit: https://gerrit.libreoffice.org/#/c/66672/
Comment 11 Commit Notification 2019-02-19 16:51:18 UTC
Takeshi Abe committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/3a6d425818b7e3e449a8e27c28cfb565dc6f21a6%5E%21

tdf#120361 Store Berend_Ilko_Tom_Stella_Volker.stc as temporary

It will be available in 6.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Xisco Faulí 2019-03-25 18:05:02 UTC
A polite ping to Takeshi Abe:
Is this bug fixed? if so, could you please close it as RESOLVED FIXED ? Otherwise, Could you please explain what's missing?
Thanks
Comment 13 Christian Lohmaier 2019-03-27 11:14:03 UTC
was set to fixed during the outage https://lists.freedesktop.org/archives/libreoffice-bugs/2019-March/176580.html