Issue Details (XML | Word | Printable)

Key: FX-878
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Markus Plesser
Reporter: Daniel Lichtenberger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
[fleXive]

DivisionConfigurationEngine#installBinary does not overwrite existing binaries

Created: 07/May/10 11:22 AM   Updated: 11/May/10 12:29 PM   Resolved: 11/May/10 12:29 PM
Component/s: Core:Configuration
Affects Version/s: 3.1.1
Fix Version/s: 3.1.2

Time Tracking:
Not Specified

Environment: Linux, JBoss 4.2.3, Postgres 8.4


 Description  « Hide

Instead of overwriting existing binaries, an exception is thrown:

13:18:37,192 WARN  [ScriptingEngineBean] Failed to execute init0020_AudioType.gy: The database reported an sql error: ERROR: duplicate key value violates unique constraint "fx_binary_pkey"
com.flexive.shared.exceptions.FxDbException: The database reported an sql error: ERROR: duplicate key value violates unique constraint "fx_binary_pkey"
	at com.flexive.core.storage.genericSQL.GenericBinarySQLStorage.binaryTransit(GenericBinarySQLStorage.java:610)
	at com.flexive.core.storage.genericSQL.GenericBinarySQLStorage.storeBinary(GenericBinarySQLStorage.java:939)
	at com.flexive.core.storage.genericSQL.GenericHierarchicalStorage.storeBinary(GenericHierarchicalStorage.java:3126)
	at com.flexive.ejb.beans.configuration.DivisionConfigurationEngineBean.installBinary(DivisionConfigurationEngineBean.java:223)


There are no comments yet on this issue.