Bug 1098882 - Data Modeler does not respect case sensitivity in packages
Summary: Data Modeler does not respect case sensitivity in packages
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Data Modeler
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Walter Medvedeo
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-19 06:51 UTC by Anton Giertli
Modified: 2014-11-11 15:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-11 15:27:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Anton Giertli 2014-05-19 06:51:21 UTC
Description of problem:

If you create a POJO in Data Modeler and specify New Package, for example:

org.redHat

Data Modeler will transform this package name into lower case, producing output
org.redhat

This is not desired as in Java, case sensitivity **matters**.


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


How reproducible:
always

Steps to Reproduce:
1. Create new object in data modeler 
2. specify new package org.redHat
3. save

Actual results:
package name is converted to lower case

Expected results:

package name is left as inputted, i.e. org.redHat remains org.redHat
Additional info:
How I have discovered it? I have deployed a WebService which accepted object org.redHat.Person in one of its method. I wanted to configure WebService task in the Process Web Designer, so first, I have created object Person in Data Modeler, and put it in the org.redHat package. Then I have configured WS to use this object as a parameter. During the web service invocation I have received a missmatch error because org.redhat.Person is not the same as org.redHat.Person

culprit:

https://github.com/droolsjbpm/kie-wb-common/blob/7d58d957ace828ecec5f87093cbbc03c77143be8/kie-wb-common-screens/kie-wb-common-data-modeller/kie-wb-common-data-modeller-client/src/main/java/org/kie/workbench/common/screens/datamodeller/client/widgets/NewPackagePopup.java#L82

Comment 2 Walter Medvedeo 2014-05-19 07:16:11 UTC
Just for clarification, at this moment datamodeler uses the same package naming criteria as kie-wb and drools-wb. e.g. If we go to the "New Package" menu option in kie-wb, we will see that packages are always created in lower case. (you can type a package name like myPackage, but mypackage will be created).

So I believe that what we need is unify the criteria for package naming at platform level and not just in datamodeler.
I believe it shouldn't be a problem to create packages with upper case letters, but we need to check.

Comment 3 Walter Medvedeo 2014-05-20 06:42:11 UTC
Hello Mike, Edson,
can you please confirm if it's possible to do this change in order to support package names with uppercase letters? 
Thanks.

Comment 4 Walter Medvedeo 2014-11-11 15:27:58 UTC
It seems like by definition packages created by the workbench will be lower cased.


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