Bug 1029526 - Version history: error on viewing deleted asset
Summary: Version history: error on viewing deleted asset
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER6
: 6.0.0
Assignee: manstis
QA Contact: Zuzana Krejčová
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-12 14:29 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:08 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:16:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1048974 0 low CLOSED Restore operation for a version that deleted a file gives error 2021-02-22 00:41:40 UTC

Internal Links: 1048974

Description Zuzana Krejčová 2013-11-12 14:29:36 UTC
Description of problem:
Each asset has Metadata tab with Version history, containing commits. This can be used to view previous versions of the asset.
If you happen to try that with a commit that deleted the asset, an editor is opened (which is a bit strange in this case), with no content, and an error pop-up appears ('File "" could not be found.').

This is a valid use-case and an issue because:
1. People are curious and will try this, knowing the commit deleted the file, just to see what happens.
2. If the file is deleted via git, not GUI, there might be a commit message that doesn't make it immediately clear and so a user wouldn't know not to view this version.
In both cases, it looks very bad at the very least.


Version-Release number of selected component (if applicable):
BPMS 6.0 ER4


Steps to Reproduce:
1. Create an asset - e.g. a DRL file, fill in some content and save.
2. Delete this asset.
3. Recreate this asset - same type, same name.
4. Go to Metadata tab and Version history, try viewing the (4th) commit/revision that deleted the file.


Actual results:
Opened editor and error pop-up.


Expected results:
No error pop-up - just a message/pop-up informing about the fact that the file is unavailable because this commit deleted the asset. Possibly also no other editor being opened.

Comment 2 Zuzana Krejčová 2014-01-06 16:35:43 UTC
Very nice.
Verified with ER7, found a related issue though, see bug 1048974.


Note You need to log in before you can comment on or make changes to this bug.