Chris Geer created RAVE-968:
-------------------------------

             Summary: Data inconsistency in MongoDB between initial data load 
and when an item is saved
                 Key: RAVE-968
                 URL: https://issues.apache.org/jira/browse/RAVE-968
             Project: Rave
          Issue Type: Bug
            Reporter: Chris Geer


This is currently happening on trunk...the data structures seem to be different 
between initial data load and the first time an element is saved. For 
example....

After initial data load if you run "db.widget.find({title: "Photo List"})" in 
mongo you get this result:

{ "_id" : "2097c832_78bd_481a_a3ea_552510b98b63", "_class" : 
"org.apache.rave.portal.model.MongoDbWidget", "title" : "Photo List", "url" : 
"http://localhost:8080/samplecontainer/examples/embeddedexperiences/PhotoList.xml";,
 "type" : "OpenSocial", "author" : "Apache Shindig", "description" : "Sample 
Embedded Experience gadget from Shindig", "widgetStatus" : "PUBLISHED", 
"comments" : [ ], "disableRendering" : false, "ratings" : [ ], "tags" : [ ], 
"categories" : [ ], "featured" : false }

Notice the array for categories for example. If you then go into Rave, open the 
widget in the admin UI and immediately save it (no changes) and rerun the mongo 
command you get this result.

{ "_id" : "2097c832_78bd_481a_a3ea_552510b98b63", "_class" : 
"org.apache.rave.portal.model.MongoDbWidget", "categoryIds" : [ ], "title" : 
"Photo List", "titleUrl" : "", "url" : 
"http://localhost:8080/samplecontainer/examples/embeddedexperiences/PhotoList.xml";,
 "thumbnailUrl" : "", "screenshotUrl" : "", "type" : "OpenSocial", "author" : 
"Apache Shindig", "authorEmail" : "", "description" : "Sample Embedded 
Experience gadget from Shindig", "widgetStatus" : "PUBLISHED", "comments" : [ 
], "disableRendering" : false, "disableRenderingMessage" : "", "ratings" : [ ], 
"tags" : [ ], "featured" : false }

Notice now the categories array is gone but there is an array called 
categoryIds. Also there are some additional fields.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to