Bug 793249 (JBEPP-334) - Creating pages or portal with same name, but uppercase doesn't work with MySQL and MSSQL
Summary: Creating pages or portal with same name, but uppercase doesn't work with MySQ...
Keywords:
Status: CLOSED WONTFIX
Alias: JBEPP-334
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.0.0.GA,5.0.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0.ER03
Assignee: Thomas Heute
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-05 12:41 UTC by Michal Vanco
Modified: 2013-04-30 23:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
EPP5-GA-SNAPSHOT-100503 DB - mssql 05 or 08 or mysql
Last Closed: 2010-10-19 13:08:31 UTC
Type: Bug


Attachments (Terms of Use)
jcr_mysql_portal_name.patch (1.16 KB, text/x-diff)
2010-05-10 19:00 UTC, Matt Wringe
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-334 0 None None None Never

Description Michal Vanco 2010-05-05 12:41:04 UTC
Date of First Response: 2010-05-05 09:18:30
project_key: JBEPP

I'm trying to create portal or pages with same name, but uppercase and with MSSQL (MySQL) I'm not able to do that.
With other DBs it works properly.

Looks like these dbs do not support distinction between uppercase and lowercase.

You can simply reproduce it when create portal with name test_portal and another one with name TEST_PORTAL.

There is link to hudson with failing test (POR_09_009):
http://hudson.qa.jboss.com/hudson/view/EPP5/job/epp5_ui_selenium_tests_mysql/32/testReport/

Comment 1 Prabhat Jha 2010-05-05 13:18:30 UTC
IMO, we should not allow two portal/pages with same name but different case.

Comment 2 Matt Wringe 2010-05-10 18:37:20 UTC
I can create page with names that only vary by case, but not with portals.

The issue it that in the table JCR_SITEM the field NAME is set as a varchar and in mysql varchar is case insensitive. The field doesn't actually store the portal name, its used as a reference to get to the data that does store it. We can still have a portal name that contains upper and lower case letters with out issue.

The easiest way to fix this issue is to not let mysql use VARCHAR to setup the table, we need to use something else which is case sensitive. If we switch from VARCHAR to VARBINARY then it will work.

Comment 3 Matt Wringe 2010-05-10 18:39:47 UTC
patch to fix this issue for mysql. It just changes the JCR_SITEM NAME to use VARBINARY instead of VARCHAR

Comment 4 Matt Wringe 2010-05-10 18:39:47 UTC
Attachment: Added: jcr_mysql_portal_name.patch


Comment 5 Matt Wringe 2010-05-10 19:00:10 UTC
Attachment: Removed: jcr_mysql_portal_name.patch 


Comment 6 Matt Wringe 2010-05-10 19:00:37 UTC
Attachment: Added: jcr_mysql_portal_name.patch



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