Upgrade to 6.1 fails when there is exists a image with the same name on the library
Description
Environment
Liferay 6.0.6
SQL Server 2008
JBoss AS 7.1 CR1b
Activity
Show:

Mark Jin January 12, 2012 at 7:27 PM
PASSED Manual Testing using the following steps:
1. Start 606.
2. Add Image Gallery portlet.
3. Add two images.
4. In database change the image to same name.
5. upgrade to trunk.
Reproduced on:
Jboss 7.0.2 + SQL Server 2008. 6.2.x GIT ID: 95bc3b8d9f714edc14fefeab9c836f6b6b9fbd0f.
Fixed on:
Jboss 7.0.2 + SQL Server 2008. 6.1.x GIT ID:be2433d21a5e86e25ea05d465badcb2421490a59.
Jboss 7.0.2 + SQL Server 2008. 6.2.x GIT ID: 84d8bd547f82478e78c0fa003ad4d3efd797c5a5.

Michael Saechang January 11, 2012 at 2:43 PM
Committed on:
6.1.x GIT ID: be2433d21a5e86e25ea05d465badcb2421490a59.
6.2.x GIT ID: 84d8bd547f82478e78c0fa003ad4d3efd797c5a5.
Fixed
Details
Assignee
Mark JinMark Jin(Deactivated)Reporter
Cristhian C LopezCristhian C LopezLabels
Branch Version/s
6.1.xBackported to Branch
CommittedGit Pull Request
Components
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Labels
Branch Version/s
6.1.x
Backported to Branch
Committed
Git Pull Request
Components
Fix versions
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created January 4, 2012 at 6:51 AM
Updated June 24, 2023 at 3:39 PM
Resolved March 12, 2012 at 2:28 PM
I'm trying to upgrade from 6.0.6 to 6.1 RC, but I got a SQL Exception because of duplicated data for a unique index.
After some debug I found that it's caused because there is exists 2 images with the same name on the IGImage table.
As a workaround you can change the name of the duplicate files manually.