When viewing the commitlog, links to files that were deleted cause internal server error

Testing issue: #1040026: Clicking a file in the commitlog results in a File Not Found error

Comments

marvil07’s picture

Title: When viewing the commitlog, links to files that were deleted cause internal server error » Do not link to deleted files on gitweb_rewrite webviewer_url_handler plugin
Project: Version Control API » Version Control API -- Git backend
Component: Commit Log » Code
Assigned: Unassigned » marvil07

I think i know why.

In gitweb webviewer_url_handler plugin I used git blob, that is only set for non-deleted files, but the plugin used in git-dev is gitweb_rewrite, that support pathinfo gitweb feature, that use hashes, that are always set(no depent on the blob).

So, I suppose I need to verify deletion, hopefully is not that hard :-p

marvil07’s picture

Status: Active » Fixed
StatusFileSize
new1.18 KB

\o/ I really enjoy when fixes are simple :-)

Fix committed.

eliza411’s picture

Still seeing the error after the Jan 26 build.

marvil07’s picture

Yep, the problem is still there because the default webviewer plugin is still the one defined by drupalorg module, that is not necessary anymore.

So, not sure where that's set. Looking for it

sdboyer’s picture

@marvil07 - I shifted us back to a drupalorg-specific plugin so that we could handle the necessary prefixing for project/ vs. sandbox/[git username]. It was mildly hacky having that in the base url in the first place. Regardless, that plugin is working now, but we'll need a similar change made to it. I think I should be able to adapt this patch...

marvil07’s picture

Project: Version Control API -- Git backend » Drupal.org customizations
Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Fixed » Reviewed & tested by the community
StatusFileSize
new902 bytes

Ok, here the same hunk applied to drupalorg related module.

sdboyer’s picture

Status: Reviewed & tested by the community » Fixed

Fixed. Thanks!

eliza411’s picture

Status: Fixed » Needs work

Now there are no links on deleted files, yay!

But the links to existing files produce 404s.

See To reproduce: http://git-dev.drupal.org/node/21106/commits to reproduce. Click any file link.

eliza411’s picture

I should add that there were changes to gitweb that could be the problem.

eliza411’s picture

Status: Needs work » Fixed

This morning, they're working fine.

Status: Fixed » Closed (fixed)
Issue tags: -git phase 2, -git sprint 9

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit acfe0c3 on 6.x-3.x, 7.x-3.x-dev by sdboyer:
    Issue #1040030 by marvi07: do not link to deleted files in the custom...