Bug 1217725 - Externalize storagePath for DocumentStorageService
Summary: Externalize storagePath for DocumentStorageService
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: DR1
: 6.2.0
Assignee: Pere Fernàndez
QA Contact: Marián Macik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-01 11:20 UTC by Anton Giertli
Modified: 2020-03-27 20:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:12:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Specifying storage path on a DocumentMarshallingStrategy (102.57 KB, image/png)
2015-06-12 09:26 UTC, Pere Fernàndez
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1454143 0 None None None 2016-03-07 09:41:27 UTC

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.


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