Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Export as JSON" yielding corrupted data #4577

Closed
AdamElliott-AB opened this issue Dec 14, 2021 · 5 comments · Fixed by #4585
Closed

"Export as JSON" yielding corrupted data #4577

AdamElliott-AB opened this issue Dec 14, 2021 · 5 comments · Fixed by #4585
Labels
bug:regression It used to work. Now it doesn't :( severity:blocker type:bug
Projects
Milestone

Comments

@AdamElliott-AB
Copy link

When performing "Export as JSON", the downloaded file now includes contents from previous objects that were exported intermixed with expected object contents

@nikhilmandlik
Copy link
Contributor

Testing instructions:

  1. create or use 2 different objects from Tree
  2. eg: 1-SWG and 2-Clock
  3. export SWG object (save as SWG.json)
  4. export Clock object (save as clock.json)
  5. open clock.json and observe under 'openmct' SWG object details are included along with clock object details.

@nikhilmandlik nikhilmandlik added the bug:regression It used to work. Now it doesn't :( label Dec 15, 2021
@unlikelyzero unlikelyzero added this to Needs triage in Bug Tracker via automation Dec 15, 2021
@akhenry
Copy link
Contributor

akhenry commented Dec 16, 2021

The fix for this will be in 1.8.3 1.8.2. For now you should be able to workaround it by refreshing your browser between exports.

@shefalijoshi
Copy link
Contributor

Marking as closed as the fix was merged.

Bug Tracker automation moved this from Needs triage to Done Dec 16, 2021
@kobe1104
Copy link
Contributor

Verified fixed - testathon 12/16/2021

@khalidadil
Copy link
Contributor

I exported a clock and see this:

{"openmct":{"8f47c188-bf72-40e7-b3a6-d49079af10f3":{"configuration":{"baseFormat":"YYYY/MM/DD hh:mm:ss","use24":"clock24","timezone":"UTC"},"name":"A Clock","type":"clock","location":"c8e4ecff-f10d-4e1c-ad03-20f9e8ae1f78","modified":1639433773640,"identifier":{"namespace":"","key":"8f47c188-bf72-40e7-b3a6-d49079af10f3"},"persisted":1639433773642}},"rootId":"8f47c188-bf72-40e7-b3a6-d49079af10f3"}

which seems correct. Verified 12/16/2021

unlikelyzero pushed a commit that referenced this issue Dec 17, 2021
…equally as important (#4611)

* Release 1.8.2

* Trasactions tests are ids equal fix 1.8.2 (#4593)

* test fix

* return promise on 'onSave'

* "Export as JSON" yielding corrupted data #4577 (#4585)

#4577

* Fix date picker default time setting (#4581)

Fix mode dropdown position
Fix unlistening of upstream events

* Bar graph composition policy fix to allow condition set creation. (#4598)

* Use image timestamp instead of image index to show large view (#4591)

* Use image timestamp instead of image index to show large view

* Fix failing test

Co-authored-by: Nikhil <nikhil.k.mandlik@nasa.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:regression It used to work. Now it doesn't :( severity:blocker type:bug
Projects
Development

Successfully merging a pull request may close this issue.

7 participants