Wrong (404) URLs being generated upon search
Summary
Hello, I am getting incorrect ULRs (404) when searching for a specific string in a specific file (example below). I am search, for example for string 'mac'
Steps to reproduce
Create file 'x' in a project with the below:
Serial Number: 0000000000, Control Number: 00000000
Hardware Version: REV 15(0)-(00), FPGA checksum: 00000000, VLAN1 IP (0.0.0.0)
Software Version: 6.3.0r21.0, Type: Firewall+VPN
Feature: AV-K
BOOT Loader Version: 1.0.4
Compiled by build_master at: Fri Dec 11 00:27:43 PST 2015
Base Mac: 0020.0000.0000
File Name: ssg500.6.3.0r21.0, Checksum: 83744ae3
, Total Memory: 1024MB
The Network Time Protocol is Disabled
Total Device Resets: 1, Last Device Reset at: 03/10/2015 10:12:44
Expected behavior
I should get the correct URL with the name of the file at the end, for example: https://172.22.111.11:8081/oxidized/devices/blob/master/x
Actual behaviour
I am getting that URL (and 404) https://172.22.111.11:8081/oxidized/devices/blob/master/x-6-Compiled%20by%20build_master%20at
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Output of checks
Results of GitLab application Check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)
gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 3.4.0 ? ... OK (3.4.0)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
2/1 ... ok
2/2 ... ok
9/3 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
2/1 ... yes
2/2 ... yes
9/3 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 6
Checking GitLab ... Finished
Results of GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)
gitlab-rake gitlab:env:info
System information
System: Debian 7.11
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:2.3.0
Rake Version: 10.5.0
Sidekiq Version:4.1.4
GitLab information
Version: 8.11.3
Revision: 6cd4edb
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://172.22.111.11:8081
HTTP Clone URL: https://172.22.111.11:8081/some-group/some-project.git
SSH Clone URL: git@172.22.111.11:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.4.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
It seems to fail only when search for something in lines: (but not for everything)
Base Mac: 0020.0000.0000 File Name: ssg500.6.3.0r21.0, Checksum: 83744ae3
Thanks a lot