Menu

#189 PSA Upload fails silently when role exists

v3.9 (Development)
closed
mwelburn
6
2009-12-03
2009-03-12
No

The page set archiver fails uploading roles that already exist in the docbase. Steps to recreate:

1) Create a Role in the docbase and give it a unique name (ex: Operations).
2) Archive the page set and delete it, which will delete the role
3) Create another role and give it the same name as the role in step 1. Note that the contents of the role can be different - it just needs to be named the same.
4) Upload the archive from step 2 - the upload looks like it has worked successfully
5) Publish the uploaded page set and look at the uploaded role. It will not have a priority set, and clicking on the role will show an invalid display on the role detail page.

To fix this error, the page set archiver should warn the user during the upload process that a role with the same name already exists. After the user presses any key, the upload should continue, but the role should be skipped.

In 'uploadAll' mode, the role should still be skipped, but instead of stopping the process, a warning should be written to the upload log file.

Discussion

  • mwelburn

    mwelburn - 2009-03-17
    • assigned_to: nobody --> mwelburn
     
  • mwelburn

    mwelburn - 2009-03-19
    • status: open --> pending
     
  • mwelburn

    mwelburn - 2009-03-19

    Updated code to request that the user renames the role. If not, the role is automatically renamed by appending a number to the end, and all of the references to this role are also updated.

    Updated test scripts.

     
  • George Steimer

    George Steimer - 2009-12-03
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB