Stash Browse - Error viewing VB files

One of our repositories is a .NET website with a VB.NET backend. When I am browsing through the code on the web interface, I can view the content of most files when I click on their file names. This works for all files except for the VB files. In some cases a popup appears that says "Page not found - We could not find the page you requested" and in other cases a generic 404 error page comes up.

Is this a bug or is there something wrong in my configuration? This is a download version of Stash that uses a SQL Server 2008 R2 database.

4 answers

1 accepted

This widget could not be displayed.

After doing some investigation, it turned out that the problem was with the IIS proxy that I had set up to forward to Stash. By default, IIS turns on "Request Filtering" which blocks it from serving up files with certain file extensions. The extension ".vb" was on the list, along with many other common code file extensions. It also had blocked my "app_code" folder in the Request Filtering "Hidden Segments" section. When I cleared out these default settings, the pages loaded without problem.

This widget could not be displayed.
Seb Ruiz Atlassian Team Sep 20, 2012

Hi Jeff. This may well be a bug in Stash. If you wouldn't mind giving me the URL that Stash is trying to load which 404s that would be appreciated.

Otherwise, you will have to raise a support request at https://support.atlassian.com where we can diagnose through your log files and identify the issue.

This widget could not be displayed.

The site is on our internal network, so I don't think you will have any way to view the URLs. I will raise a support request and hope it will resolve my issue.

I just realized that the URLs themselves might help you see where the 404s are occurring without actually accessing them. Here are two examples:

1. This is a directory full of only VB files. When I click on it, the red popup appears.

http://code.bcsops.com/projects/CERTUS/repos/certus/browse/BCS.Certus/BCS.Certus.Core/app_code

2. This is a VB file from a commit. The red popup also appears when I click on this.

http://code.bcsops.com/projects/CERTUS/repos/certus/commits/63cded6b3e47e51073f8ec3efafc0b8a1cd42ac0#BCS.Certus/Certus/errorpage.aspx.vb

3. This is a VB file. When I click on it, a 404 error page appears.

http://code.bcsops.com/projects/CERTUS/repos/certus/browse/BCS.Certus/Certus/default.aspx.vb

The attached images show what the red error box and the 404 page look like.

I guess the images didn't get uploaded. Here they are.

Seb Ruiz Atlassian Team Sep 23, 2012

Hi Jeff,

Thanks for the detailed description and screenshots. Unfortunately I couldn't seem to reproduce anything based on the filenames. You will need to contact our support engineers at https://support.atlassian.com/ and upload your stash logs for us to dig into and diagnose/fix the issue.

Cheers and thanks,

Seb

This widget could not be displayed.

Hi Jeff.

We were able to solve your SAC Issue by passing the ISS proxy:

1. Disable any forwardings from the IIS Server
2. Change the Base URL to become the name of the Server where Stash is installed.
3. Access Stash using its address and port (the one that is configured on the Application - 7990)
4. Try to open a VB file

Also the problem iself was the ISS Default Filters. IIS turns on request filtering which blocks files with certain file extensions. The file extension ".vb" was on the list and it also blocked the "app_code" filter through in the hidden segments section.

To solve the problem you had to clear those default settings. After that the pages started to load without any problems.

Cheers,
Douglas Fabretti
Atlassian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,317 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you