Bug #4539

Notes disappearance

Added by Jesús García Crespo over 6 years ago. Updated over 6 years ago.

Status:VerifiedStart date:01/16/2013
Priority:CriticalDue date:
Assignee:Jesús García Crespo% Done:

0%

Category:Data model / ORMEstimated time:12.00 hours
Target version:Release 1.3.1
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

Two users so far have reported that some of their notes have disappeared (see user discussion). Both users are using ICA-AtoM 1.3.0 in pt or pt_BR, although it may be just a coincidence.

Cristina (UFMG) did some research and found that the notes are still in the database (tables note and note_i18n), however the object_id had an unexpected value, pointing to an user rather than its original information object. It's worth mentioning that the note table has an additional user_id column and after this error was detected, both object_id and user_id had the same value.


Related issues

Related to Access to Memory (AtoM) - Bug #4371: Translate note field reveals both languages Verified

History

#1 Updated by Jesús García Crespo over 6 years ago

  • Description updated (diff)

#2 Updated by Jesús García Crespo over 6 years ago

  • Estimated time set to 12.00

#3 Updated by Dan Gillean over 6 years ago

Testing in the ICA-AtoM 1.3.0 Demo Site has revealed a possible cause, due to an ACL permissions issue.

To reproduce this error:
1) Log into the ICA-AtoM Demo Site as an administrator (follow site instructions using , password: demo)
2) Navigate to Admin > Users
3) Create a new user, FOO. Assign this user to the Editor Group
4) Log out, and log back in as FOO
5) Navigate to an archival description, and add several notes in the ISAD Notes Area, then save the description. Log out.
6) Log in as Demo (administrator), and navigate to Admin > Users > Foo > Edit
7) Unclick the checkbox that says "Active", and save your changes. Log out.
8) Log back in as Demo (administrator), and navigate to where the Notes input by FOO should be (they are missing)
9) Now navigate back to Admin > Users and click the "Show inactive" tab. Edit FOO and check the "Active" checkbox (reactivate FOO). Save changes and log out.
10) Log back in and navigate to where FOO's notes should be on the archival description.

Error encountered
FOO's notes are still missing

Expected Result
Even when inactive, FOO's notes should remain visible on the description, unless they are deleted by an authenticated user with editing privileges.

Note that even if you log in as FOO (once declared active again by the administrator), the notes are still missing. Note as well that when you browse the descriptions, the "Last updated" column still captures the time that the description was last edited (i.e., when the notes were added by FOO).

#4 Updated by Jesús García Crespo over 6 years ago

  • Status changed from New to QA/Review

I've found that this problem was occurring after any change in the user properties like password, e-mail address, etc... it's been fixed in commit:f9f94234b564314cc88d28cd92b26b5a99f4f513.

#5 Updated by Jesús García Crespo over 6 years ago

I've created a patch for ICA-AtoM 1.3.0 users, but please wait until this fix is verified by the testing team.

Instructions:

 $ cd /var/www/ica-atom-1.3.0
 $ wget https://gist.github.com/raw/4552691/0fdd828b90ad331733b9c164a21af374cec68941/fix-issue-4539.patch
 $ patch -p1 < fix-issue-4539.patch
-- Clear the cache.

#6 Updated by Jessica Bushey over 6 years ago

  • Status changed from QA/Review to Verified

To reproduce this error:
1) Log into the 1.X as an administrator
2) Navigate to Admin > Users
3) Create a new user, "Assistant". Assign this user to the Editor Group
4) Log out, and log back in as Assistant
5) Create archival description/ or/ edit existing archival description, and add several notes in the ISAD Notes Area, then save the description. Log out.
6) Log in as Demo (administrator), and navigate to Admin > Users > Assistant > Edit
7) Unclick the checkbox that says "Active", and save your changes. Log out.
8) Log back in as Demo (administrator), and navigate to where the Notes input by Assistant. Confirm they are there. Yes.
9) Now navigate back to Admin > Users and click the "Show inactive" tab. Edit Assistant and check the "Active" checkbox (reactivate Assistant). Save changes and log out.
10) Log back in and navigate to where Assistant's notes should be on the archival description. Confirm they are there. Yes.

FIXED!

#7 Updated by David Juhasz over 6 years ago

  • Target version changed from Release 1.4.0 to Release 1.3.1

Also available in: Atom PDF