Skip to content

Missing content error in raw view & treeview #1234

Description

@exxdevop

Hello GitlBlit-Team,

we got a problem with the raw view of GitBlit. First things first, some details about our setup:

  • GitBlit version 1.8.0 (JAR)
  • JAVA 1.8

The service runs behind an apache 2.4 webserver with reverse proxy configuration like this:

        ProxyRequests Off
        ProxyVia Off
        ProxyPreserveHost On
        <Proxy>
              AddDefaultCharset off
              Require all granted
        </Proxy>
        ProxyPass / http://127.0.0.1:5010/
        ProxyPassReverse / http://127.0.0.1:5010/

We also set the option web.forwardSlashCharacter in the gitblit.properties to ! to prevent problems with encoded slashes.

The actual problem occures when browsing a branch (with a slash in its name) of a repository with the treeview and from there showing a specific file in raw view. The service runs into an error that the resource could not be found.

To reproduce the error, we:

  1. create a repository
  2. check out locally with git
  3. create a branch ( e.g. foo/bar-123)
  4. create a dummy file in this branch
  5. commit & push
  6. open the gitblit webpage
  7. browse to repo
  8. select branch from list
  9. change to tree view
  10. select raw link on file to switch to raw view

At this point the error occurs.

Thanks for advice and kind regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions