Domino 9 und frühere Versionen > ND8: Entwicklung
File auswählen mit Formelsprache
eknori:
--- Zitat ---Ein leeres TXT File ist danach weg.
--- Ende Zitat ---
Jetzt kommen wir der Sache schon näher. Dass das bei einem LEEREN Textfile passiert, hast du uns bisher verschwiegen.
Ich kann das Verhalten in diesem Punkt bestätigen.
--- Zitat ---Ist irgendeine Antivirus-Software aktiv?...
--- Ende Zitat ---
auch ohne ist das Verhalten reproduzierbar
(8.5.2 auf Windows 7 Ultimate 32 + 64 Bit )
sculer:
Hey,
ich hab ja einfach zum testen ein paar simple TXT Files erstellt, und mich dann halt einfach gewundert. Aber warum ist dies den so!? Ist doch eingentlich nicht sinn und zweck dieses Befehls.
Naja, zumindest ist das Verhalten nun mal reproduzierbar....Lösen lässt sich dies wohl eher nicht, ist aber auch nicht so schlimm, wenn es halt nur leer Files sind.
PS: Antivirus Software hat keinen Einfluß darauf.
Danke an alle
Gruß
koehlerbv:
Das selbe "behaviour", was mit bis dahin auch unbekannt war, kann ich auch für Notes 7 und Windows XP bestätigen.
Bernhard
eknori:
Betrifft nicht nur @Formula sondern auch Script. Gibt jetzt eine Technote dazu
--- Zitat ---Problem
You have a LotusScript application where the user has to select a file using the OpenFileDialog method. In selecting a file of zero bytes the filename is returned but the file is then deleted.
Example to reproduce.
1. In the file system create a new empty text file - for example "c:\test.txt"
2. In a Notes database create a view action (or agent) with the following code
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim result As Variant
result = ws.OpenFileDialog(False) End Sub
3. Click the View action (or launch agent). The OpenFileDialog opens.
4. Navigate to c: and select the empty test.txt file. Click Open.
5. Check the file system on c:. You will notice that test.txt has been deleted from the file system.
Resolving the problem
This issue has been reported to Quality Engineering as SPR SODY855B7B.
If this is an issue for your application you should put in code to check if the file still exists. Alternatively you can mark the zero byte file as read-only.
--- Ende Zitat ---
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln