Bug 1270704

Summary: Configurable Workbench: VFS API does not work on Windows system
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: Business CentralAssignee: Eder Ignatowicz <eignatow>
Status: CLOSED NOTABUG QA Contact: Tomas David <tdavid>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: kverlaen, lpetrovi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-19 06:17:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.