Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
0.9.1
-
None
-
None
Description
When you upgrade Wookie from 0.9.0 to 0.9.1, shared data is no longer associated with the original instances, largely due to fixes for the shared data key algorithm (see WOOKIE-206).
To replicate:
1- Install Wookie 0.9.0 on Tomcat with MySQL
2- Instantiate a widget with shared data (e.g. ShareDraw) using defaults ("test","testuser","myshareddata"), and draw something
3- Shut down Tomcat
4- Install Wookie 0.9.1
5- Run the database migration script
6- Restart Tomcat
7- Instantiate as in Step 2.
The resulting widget instance is not the same.
The original data is still there, and retrieving the widget instance by using the REST API with the original id_key works fine, e.g.:
http://localhost:8080/wookie/widgetinstances/G5M.sl.oijBzo.sl.ppuPoZNBgGgdBPfE.eq.?api_key=TEST
However the instantiation code will create a new widget, probably as the processed API key will no longer match.