Bug #9983
Updating filename for PDF using rename module causes 500 error
Status: | Verified | Start date: | 06/10/2016 | |
---|---|---|---|---|
Priority: | Medium | Due date: | ||
Assignee: | Dan Gillean | % Done: | 0% | |
Category: | Digital object | |||
Target version: | Release 2.3.0 | |||
Google Code Legacy ID: | Tested version: | 2.3 | ||
Sponsored: | No | Requires documentation: |
Description
Found an apparent regression in the Rename module:
- Create an archival description
- Link a locally uploaded PDF to the description, say FOO.pdf
- Use the Rename module to rename the PDF to BAR.pdf
Resulting error
500 error
2016/06/10 22:02:36 [error] 3224#0: *79 FastCGI sent in stderr: "PHP message: You cannot save an object that has been deleted" while reading response header from upstream, client: 10.10.10.1, server: _, request: "POST /rights-template-update-test-collection/rename HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.atom.sock:", host: "10.10.10.10", referrer: "http://10.10.10.10/rights-template-update-test-collection/rename"
Expected result
Digital object name is updated without errors
History
#1 Updated by Dan Gillean almost 6 years ago
Note that I did not have this same issue when renaming an uploaded PNG file. The PDF I used the 2nd time I reproduced this behavior was only 100KB, so I don't think it's related to size either.
#2 Updated by Nick Wilkinson almost 6 years ago
- Assignee set to José Raddaoui Marín
Hi Radda, can you investigate this?
#3 Updated by José Raddaoui Marín almost 6 years ago
- Status changed from New to Code Review
- Assignee changed from José Raddaoui Marín to Nick Wilkinson
Ready for code review in PR 391
#4 Updated by Nick Wilkinson almost 6 years ago
- Assignee changed from Nick Wilkinson to Mike Cantelon
Hi Mike, assigning to you for CR.
#5 Updated by Jesús García Crespo almost 6 years ago
- Status changed from Code Review to Feedback
- Assignee changed from Mike Cantelon to José Raddaoui Marín
#6 Updated by José Raddaoui Marín almost 6 years ago
- Status changed from Feedback to Code Review
- Assignee changed from José Raddaoui Marín to Nick Wilkinson
Added feedback suggested by Sevein.
#7 Updated by Nick Wilkinson almost 6 years ago
- Assignee changed from Nick Wilkinson to Jesús García Crespo
Hi Jesús, assigning to you for CR.
#8 Updated by Jesús García Crespo almost 6 years ago
- Status changed from Code Review to QA/Review
- Assignee changed from Jesús García Crespo to Dan Gillean
#9 Updated by Dan Gillean almost 6 years ago
- Status changed from QA/Review to Feedback
- Assignee changed from Dan Gillean to José Raddaoui Marín
When I renamed a PDF, the derivatives (reference, thumbnail) are lost, and the default icon shows instead - perhaps because they are in fact JPGs? Can we resolve this so renaming is possible without requiring the CLI task to regen the derivatives?
#10 Updated by José Raddaoui Marín almost 6 years ago
- Status changed from Feedback to QA/Review
- Assignee changed from José Raddaoui Marín to Dan Gillean
Thanks Dan, it was a regression caused by this fix, it should be solved now in qa/2.3.x.
#11 Updated by Dan Gillean almost 6 years ago
- Status changed from QA/Review to Verified