Bug 125060 - Do not add files opened via "private:stream" to recent document list
Summary: Do not add files opened via "private:stream" to recent document list
Status: RESOLVED DUPLICATE of bug 95095
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-01 11:44 UTC by Oliver Brinzing
Modified: 2019-05-11 08:35 UTC (History)
1 user (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 Oliver Brinzing 2019-05-01 11:44:29 UTC
files opened via "private:stream" should not be added to the recent document files list, cause it's not possible to load it again:

steps to reproduce:
- run macro:
  
Sub CSVFromStream
 aBytes = Array(72,9,69,9,76,9,76,9,79)
 oIStream = com.sun.star.io.SequenceInputStream.createStreamFromSequence(aBytes)

 Dim oMediaDesc(2) as new com.sun.star.beans.PropertyValue
 oMediaDesc(0).Name = "InputStream"
 oMediaDesc(0).Value = oIStream
 oMediaDesc(1).Name = "FilterName"
 oMediaDesc(1).Value = "Text - txt - csv (StarCalc)"
 oMediaDesc(2).Name = "FilterOptions"
 oMediaDesc(2).Value = "9,0,0,1"
 Dim doc
 doc =  StarDesktop.loadComponentFromURL("private:stream","_blank",0,oMediaDesc)
End Sub

- close file without saving

- an entry "private:stream" is added to recent document list

<item oor:path="/org.openoffice.Office.Histories/Histories/org.openoffice.Office.Histories:HistoryInfo['PickList']/ItemList">
  <node oor:name="private:stream" oor:op="replace">
	<prop oor:name="Title" oor:op="fuse">
	  <value>private:stream</value>
	</prop>
	<prop oor:name="Filter" oor:op="fuse">
	  <value>Text - txt - csv (StarCalc)</value>
	</prop>
	 <prop oor:name="Password" oor:op="fuse">
	  <value/>
	</prop>
	<prop oor:name="Thumbnail" oor:op="fuse">
	  <value></value>
	</prop>
  </node>
</item>
Comment 1 Oliver Brinzing 2019-05-11 08:35:39 UTC
it' possible to avoid adding an entry to the recent document list adding property

oMediaDesc(3).Name = "PickListEntry"
oMediaDesc(3).value  = false

*** This bug has been marked as a duplicate of bug 95095 ***