Uploaded image for project: 'Wookie'
  1. Wookie
  2. WOOKIE-243

Shared data/widget instances issue when migrating to 0.9.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.1
    • Component/s: None
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              scottbw Scott Wilson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: