FAQ
Bugs item #1196085, was opened at 2005-05-05 17:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?funcÞtail&atid0103&aid96085&group_id3

Category: Web/CGI
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: dwpoon (dwpoon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Utils.ScriptURL() doesn't generate relative URLs

Initial Comment:
In Utils.py, function ScriptURL takes a boolean
argument called "absolute". When it's False, the
function is supposed to return the target URL relative
to the URL of the currently executing CGI. However, a
logic bug prevents it from doing that.

See the attached patch for the correction. (Patch is
against version 2.1.6rc3.)

Explanation:
fullpath is the URL-path of the current CGI, e.g.
'/mailman/create'.
baseurl is something like '/mailman/'.
Therefore, it makes sense to return a relative URL
whenever fullpath STARTSwith baseurl.

This fix is important because without the ability to
generate relative URLs, the UI will always tend towards
using HTTP or HTTPS (whichever happens to be specified
in web_page_url). It would be nice if it would
continue using whichever protocol was already in use.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?funcÞtail&atid0103&aid96085&group_id3

Search Discussions

  • SourceForge.net at May 5, 2005 at 6:08 pm
    Bugs item #1196085, was opened at 2005-05-05 17:55
    Message generated for change (Comment added) made by dwpoon
    You can respond by visiting:
    https://sourceforge.net/tracker/?funcÞtail&atid0103&aid96085&group_id3

    Category: Web/CGI
    Group: 2.1 (stable)
    Status: Open
    Resolution: None
    Priority: 5
    Submitted By: dwpoon (dwpoon)
    Assigned to: Nobody/Anonymous (nobody)
    Summary: Utils.ScriptURL() doesn't generate relative URLs

    Initial Comment:
    In Utils.py, function ScriptURL takes a boolean
    argument called "absolute". When it's False, the
    function is supposed to return the target URL relative
    to the URL of the currently executing CGI. However, a
    logic bug prevents it from doing that.

    See the attached patch for the correction. (Patch is
    against version 2.1.6rc3.)

    Explanation:
    fullpath is the URL-path of the current CGI, e.g.
    '/mailman/create'.
    baseurl is something like '/mailman/'.
    Therefore, it makes sense to return a relative URL
    whenever fullpath STARTSwith baseurl.

    This fix is important because without the ability to
    generate relative URLs, the UI will always tend towards
    using HTTP or HTTPS (whichever happens to be specified
    in web_page_url). It would be nice if it would
    continue using whichever protocol was already in use.

    ----------------------------------------------------------------------
    Comment By: dwpoon (dwpoon)
    Date: 2005-05-05 18:08

    Message:
    Logged In: YES
    user_id81585

    Patch Tracker 1196091
    http://sourceforge.net/tracker/index.php?funcÞtail&aid96091&group_id3&atid00103

    ----------------------------------------------------------------------

    You can respond by visiting:
    https://sourceforge.net/tracker/?funcÞtail&atid0103&aid96085&group_id3

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-coders @
categoriespython
postedMay 5, '05 at 5:55p
activeMay 5, '05 at 6:08p
posts2
users1
websitelist.org

1 user in discussion

SourceForge.net: 2 posts

People

Translate

site design / logo © 2021 Grokbase