Ah.  I see you're already there.

On 02/ 9/11 11:17 AM, Shawn Walker wrote:
Greetings,

The following diff is a fix for this bug:

17862 bui index page doesn't redirect properly for specific
publishers if trailing slash is missing

diff -r 222c354606f3 src/web/index.shtml
--- a/src/web/index.shtml Wed Feb 09 10:10:53 2011 -0800
+++ b/src/web/index.shtml Wed Feb 09 11:11:52 2011 -0800
@@ -19,7 +19,7 @@
##
## CDDL HEADER END
##
-## Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+## Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
##
<%!
import os.path
@@ -57,10 +57,16 @@
# Ignore publisher component of path.
rpath = rpath.replace(pub, "").strip("/")

+ prefix = ""
if rpath == "":
+ # Because the redirect is relative if the original request
+ # didn't end with a '/', special care has to be taken for
+ # this particular case.
+ if pub and not request.path_info.endswith("/"):
+ prefix = pub + "/"
rpath = "index.shtml"

# Finally, redirect the client to the content appropriate for their
# language and region.
- raise api_errors.RedirectException("%s/%s" % (dlang, rpath))
+ raise api_errors.RedirectException("%s%s/%s" % (prefix, dlang, rpath))
%>\

-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to