Bug 1217725

Summary: Externalize storagePath for DocumentStorageService
Product: [Retired] JBoss BPMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: jBPM CoreAssignee: Pere Fernàndez <pere.fernandez>
Status: CLOSED EOL QA Contact: Marián Macik <mmacik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: mbaluch, omolinab
Target Milestone: DR1   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:12:51 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:
Attachments:
Description Flags
Specifying storage path on a DocumentMarshallingStrategy none

Description Anton Giertli 2015-05-01 11:20:04 UTC
Description of problem:
When using DocumentMarshallingStrategy the storage directory for the documents is hardcoded

https://github.com/droolsjbpm/jbpm/blob/6.2.x/jbpm-document/src/main/java/org/jbpm/document/service/impl/DocumentStorageServiceImpl.java#L42-L45

Please externalize this storage. i.e. via system property

Version-Release number of selected component (if applicable):
BPMS 6.1

How reproducible:
always

Steps to Reproduce:
1. Run bpm in location where user 
2.
3.

Actual results:
it's not possible to change location of document storage

Expected results:
it's possible to change the location of document storage

Additional info:
A customer is running JBoss as a service under such directory where he doesn't have full access to the .docs dir, hence bpm is unable to write in here..

directories for git, maven repo are configurable, this one should be too.

Comment 2 Pere Fernàndez 2015-06-12 09:26:36 UTC
Created attachment 1037964 [details]
Specifying storage path on a DocumentMarshallingStrategy

Comment 3 Pere Fernàndez 2015-06-12 09:26:49 UTC
From now it will be possible to specify what is the path where the docs are going to be stored by adding a string parameter to specify the full path on the kie-deployment-descriptor.xml. If there is no parameter, by default, it will take the .docs folder.


Commit (master): https://github.com/droolsjbpm/jbpm/commit/e7f5bc0abc3972c7bfab2aff0749358c8f2f3f7c

Comment 4 Marián Macik 2015-09-22 08:29:30 UTC
I can confirm that it works as intended. Verified on 6.2.0.ER2.