Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1146207

Summary: RemoteMessage#context is empty
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Rick Wagner <rwagner>
Component: RT GovernanceAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact: Andrej Vano <avano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: avano, soa-p-jira, stejohns
Target Milestone: CR1   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:43:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1120384    
Attachments:
Description Flags
Updated version of the rtgov ordermgmt quickstart none

Description Rick Wagner 2014-09-24 18:39:01 UTC
See attached JIRA and Support case for details.  Fix available in Community.

Comment 5 Gary Brown 2014-09-25 08:55:40 UTC
Fix is ready to be committed - only problem is that it will require an increase to the RTGOV_ACTIVITY_PROPERTIES 'value' column, as during testing I got:

Caused by: org.h2.jdbc.JdbcSQLException: Value too long for column "VALUE VARCHAR(255)": "'{""org.switchyard.messageId"":""ID-gbrown-redhat-46259-1411634329007-0-1"",""Accept/format"":""text"",""{http://www.projectoverlord.io/e... (628)"; SQL statement:
insert into RTGOV_ACTIVITY_PROPERTIES (unitId, unitIndex, name, value) values (?, ?, ?, ?) [22001-168]


How should db schema changes be handled - should I define the new length in the code and a new schema is generated, and we provide instructions for manually updating existing dbs?

Comment 6 Steve Johnson 2014-09-25 18:18:03 UTC
(In reply to Gary Brown from comment #5)
> Fix is ready to be committed - only problem is that it will require an
> increase to the RTGOV_ACTIVITY_PROPERTIES 'value' column, as during testing
> I got:
> 
> Caused by: org.h2.jdbc.JdbcSQLException: Value too long for column "VALUE
> VARCHAR(255)":
> "'{""org.switchyard.messageId"":""ID-gbrown-redhat-46259-1411634329007-0-1"",
> ""Accept/format"":""text"",""{http://www.projectoverlord.io/e... (628)"; SQL
> statement:
> insert into RTGOV_ACTIVITY_PROPERTIES (unitId, unitIndex, name, value)
> values (?, ?, ?, ?) [22001-168]
> 
> 
> How should db schema changes be handled - should I define the new length in
> the code and a new schema is generated, and we provide instructions for
> manually updating existing dbs?

We could let the new schema be generated and then work out the diff between the old and new schema.  The schema update could then be supplied as SQL file containing a number of "alter ..." statements to get the schema to match the new code annotations.  The hibernate validation might complain if it doesn't find schema that matches the code annotations. Instructions also supplied for manually updating the existing db as we currently don't have an installer to apply database patches to live production data.

Question: What is the likely max size of value attribute?  If this is/could be open ended would the attribute be better off annotated with @Lob to map to database large object types?

Comment 7 Steve Johnson 2014-09-25 18:27:24 UTC
(In reply to Steve Johnson from comment #6)
> (In reply to Gary Brown from comment #5)
> > Fix is ready to be committed - only problem is that it will require an
> > increase to the RTGOV_ACTIVITY_PROPERTIES 'value' column, as during testing
> > I got:
> > 
> > Caused by: org.h2.jdbc.JdbcSQLException: Value too long for column "VALUE
> > VARCHAR(255)":
> > "'{""org.switchyard.messageId"":""ID-gbrown-redhat-46259-1411634329007-0-1"",
> > ""Accept/format"":""text"",""{http://www.projectoverlord.io/e... (628)"; SQL
> > statement:
> > insert into RTGOV_ACTIVITY_PROPERTIES (unitId, unitIndex, name, value)
> > values (?, ?, ?, ?) [22001-168]
> > 
> > 
> > How should db schema changes be handled - should I define the new length in
> > the code and a new schema is generated, and we provide instructions for
> > manually updating existing dbs?

Will work with Gary to find a length that does not break any of our supported databases.

Comment 10 Gary Brown 2014-09-29 08:42:44 UTC
Created attachment 942234 [details]
Updated version of the rtgov ordermgmt quickstart

To test the fix (once BZ1146205 patch has been applied, and also with the latest rtgov-ui from community), deploy the updated ordermgmt quickstart (three modules now instead of two).

Then from within the ordermgmt/app submit the order5bad message (e.g. mvn exec:java -Dreq=order5bad).

This will result in a xml schema issue being reported in a situation. Go to the message associated with that situation and fix the message (change 'customerx' element to 'customer') and resubmit.

When resubmitted, check the FSW console and you should see "ORDER EXAMPLE HEADER: [m:ExampleHeaderValue: null]" which indicates that the header value has been returned as a dom.

Comment 18 Red Hat Bugzilla 2025-02-10 03:43:05 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.