Bug 1270704 - Configurable Workbench: VFS API does not work on Windows system
Summary: Configurable Workbench: VFS API does not work on Windows system
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.2.0
Hardware: Unspecified
OS: Windows
high
high
Target Milestone: ---
: ---
Assignee: Eder Ignatowicz
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-12 08:14 UTC by Tomas David
Modified: 2015-10-19 06:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-19 06:17:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas David 2015-10-12 08:14:01 UTC
Description of problem:
VFS API cannot read ($vfs_readAllString) or write ($vfs_write) files on Windows machine. There is probably some problem with uri of command.

Version-Release number of selected component (if applicable):
6.2.0.ER3

How reproducible:
-

Steps to Reproduce:
1. Execute command $vfs_write("file://C:/.../testWriteFile.txt", "This is write test file.", function(a){}); in plugin or directly from js browser console.
2. Open created file 

Actual results:
File does not exist. 

Expected results:
File contains "This is write test file." string.

Additional info:
-

Comment 1 manstis 2015-10-12 09:14:26 UTC
Looks like the VFS JSNI exposure for plugins?

Comment 2 Eder Ignatowicz 2015-10-16 18:19:44 UTC
HI Tomas,

The JS API don't access local files. It only stores and read files in workbench repositories. 

In order to use the API (fstype://branch@repo/pathToFile): 

$vfs_write("default://master@system/sample.txt", "This is write test file.", function(success){
	alert(success);
});
'


$vfs_readAllString("default://master@system/sample.txt", function(content) { 
alert(content);
});

Comment 3 Tomas David 2015-10-19 06:17:20 UTC
Hi Eder,

thanks for explanation. My bad. Works on Windows.


Note You need to log in before you can comment on or make changes to this bug.