From nobody@FreeBSD.org  Thu Aug 15 12:51:45 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 67966D73
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Aug 2013 12:51:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 5577D2D91
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Aug 2013 12:51:45 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7FCpiXe046578
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Aug 2013 12:51:44 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7FCpiMq046572;
	Thu, 15 Aug 2013 12:51:44 GMT
	(envelope-from nobody)
Message-Id: <201308151251.r7FCpiMq046572@oldred.freebsd.org>
Date: Thu, 15 Aug 2013 12:51:44 GMT
From: Yanhui Shen <shen.elf@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Opengrok's "urlPrefix" doesn't match its deploy path
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181321
>Category:       ports
>Synopsis:       devel/opengrok: "urlPrefix" doesn't match its deploy path
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tj
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 15 13:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Aug 16 02:36:20 UTC 2013
>Originator:     Yanhui Shen
>Release:        FreeBSD 9.2-BETA2
>Organization:
>Environment:
FreeBSD ThinkPad 9.2-BETA2 FreeBSD 9.2-BETA2 #0 r254020: Wed Aug  7 13:10:12 CST 2013     root@ThinkPad:/usr/obj/usr/src/sys/ThinkPad  amd64
>Description:
devel/opengrok is deployed into /usr/local/apache-tomcat-7.0/webapps/opengrok,
which is NOT the default directory "..../webapps/source",
however, "-w opengrok" is not specified by /usr/local/bin/opengrok.
thus some link addresses in html is not correct, and cause 404 issue.
>How-To-Repeat:
1.install opengrok and config tomcat
2.opengrok -d ./data -s fooproject -W ./config.xml
3.in browser, open a source file, click head files/variables/... in it
4.404 not found
>Fix:
/usr/local/bin/opengrok, line 15
add "-w opengrok" as default argument.
ordinary users don not need to know this technical detail.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tj 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Aug 16 02:36:19 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=181321 
>Unformatted:
