Bug 1049667 - Filter out dot-files (hidden files) during kbase compilation
Summary: Filter out dot-files (hidden files) during kbase compilation
Keywords:
Status: CLOSED DUPLICATE of bug 1044409
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Mario Fusco
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-08 01:25 UTC by Edson Tirelli
Modified: 2014-01-08 08:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-08 08:51:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Edson Tirelli 2014-01-08 01:25:56 UTC
Description of problem:
The workbench uses dot-files to store metadata. For instance, if a user creates a rule in a file called "rule.drl", the workbench creates an additional file named ".rule.drl" to store the metadata.
If a user git clones the repository from the workbench and generates the jar outside of the workbench (with maven, for instance), it will include the dot-files. 
When the application tries to load/compile a kbase, it only checks for the file extension (e.g. "drl") and tries to compile the dof-file (e.g. ".rule.drl") as if it was a regular drl file, raising compilation errors and failing to create the kbase.
It is necessary to change the KieBuilder to filter out dot-files during compilation.

Version-Release number of selected component (if applicable):
6.0.0.ER7

How reproducible:
Create a jar containing a file rule.drl with a rule and a file named .rule.drl containing random content. Try to generate the kbase.

Actual results:
Compilation errors on .rule.drl

Expected results:
No compilation errors, as the dot-files should be ignored.

Comment 1 Mario Fusco 2014-01-08 08:51:49 UTC
This issue has been already fixed by this commit https://github.com/droolsjbpm/drools/commit/1718eb18a17a686d8a60f592c03da120e0d3dd95 as part of the fix for https://bugzilla.redhat.com/show_bug.cgi?id=1044409

Michael also cherry-picked that commit to 6.0.x branch.

*** This bug has been marked as a duplicate of bug 1044409 ***


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