Hide Forgot
Date of First Response: 2009-09-11 03:27:37 securitylevel_name: Public
Link: Added: This issue depends GUVNOR-327
Verified in 5.0.1 CR1
Please confirm the following for the Release Notes documentation and fill in the missing information. (CAUSE & FIX) Dot point explanations are fine: The CAUSE (what was actually broken) * CONSEQUENCES of the bug (how users might have encountered it) * If whitespace characters (such as tabs or spaces) were the only content of the first line after the package declaration in an imported DRL file, the resulting package would fail to build. * The DRL file would import without error but attempting to build the package would fail and present an error message. The FIX (what was changed to eliminate this bug) * RESULTS of the fix (what now happens for users) * Packages created by importing these DRL files will now build without error.
Assigning this to Toni since he has fixed this bug and may answer these questions
The CAUSE (what was actually broken) * Package header contained whitespace characters and the parser was trying to find imports, templates or globals. CONSEQUENCES of the bug (how users might have encountered it) * If whitespace characters (such as tabs or spaces) were the only content of the first line after the package declaration in an imported DRL file, the resulting package would fail to build. * If the drools.package file was changed and uploaded using WebDAV or file uploader in Guvnor and the file after this contained only whitespace characters, the package would fail to build. The FIX (what was changed to eliminate this bug) * Whitespaces are removed before the parser tries to parse. Empty header causes no problems. RESULTS of the fix (what now happens for users) * Packages with whitespaces in the header file (drools.package) will now build without error.
Thanks for the clarification :-)