Skip to content

Clicking View on a Deleted file throws exception #512

Closed

Description

@gitblit

Originally reported on Google Code with ID 216

What steps will reproduce the problem?
1. Open a commit with a deleted file (https://demo-gitblit.rhcloud.com/commit/gitblit.git/11c14e192b907acd3fdc2d6a9bcf4faafc593afe)
2. Click view next to src/com/gitblit/wicket/GitBlitWebApp_pt_br.properties

What is the expected output? What do you see instead?
Unsure of the expected output, since the file doesn't exist...but it shouldn't throw
an exception.  
Maybe disable the ability to click on 'view' or show the last version of the file while
indicating it was deleted.

What version of the product are you using? On what operating system?
1.2.1 (On gitblit demo site)

Please provide any additional information below.
Exception when working locally was (removed repo name and file name):
ERROR Can't instantiate page using constructor public com.gitblit.wicket.pages.BlobPage(org.apache.wicket.PageParameters)
and argument r = "**********" h = "da60ff761bfe307b071d5c3fce0575e9144e3b49" f = "**********"
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor
public com.gitblit.wicket.pages.BlobPage(org.apache.wicket.PageParameters) and argument
r = "**********" h = "da60ff761bfe307b071d5c3fce0575e9144e3b49" f = "**********"
        at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:305)
....

Reported by johnedc on 2013-03-07 20:16:41

Activity

  1. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor
    Great example.  :)
    

    Reported by James.Moger on 2013-03-07 20:28:11

    • Status changed: Accepted
    • Labels added: Milestone-1.3.0
  2. self-assigned this
    on Aug 12, 2015
  3. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor
    Thanks for the report.
    Fixed on master.
    

    Reported by James.Moger on 2013-03-29 12:53:14

  4. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor

    Reported by James.Moger on 2013-03-29 13:42:55

    • Status changed: Queued
  5. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor
    Fix or enhancement released in v1.3.0
    

    Reported by James.Moger on 2013-07-14 16:52:58

    • Status changed: Fixed
  6. modified the milestone: 1.3.0 on Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions