Re: tracker URL http vs https

Nerijus Baliunas <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
On Sun, 13 Dec 2015 19:35:43 +0200 Nerijus Baliunas <[email protected]> wrote:

> config.ini has "web = ..." setting. I would like to not have to specify http or https in it.
> For example, if user opens http://tracker.url/..., after the login it should open http too.
> If user opens https://tracker.url/..., after the login it should open https too.
> I achieve this if I put "web = /roundup/support/" in it (i.e. withouh http|https and
> host name). But then in email footer I get:
> 
> <Configuration Error: TRACKER_WEB isn't a fully-qualified URL>

The following patch helped:

diff -ur roundup.orig/roundupdb.py roundup/roundupdb.py
--- roundup.orig/roundupdb.py   2012-12-21 12:50:14.000000000 +0200
+++ roundup/roundupdb.py        2015-12-15 17:12:44.000000000 +0200
@@ -644,8 +644,7 @@
         base = self.db.config.TRACKER_WEB
         if (not isinstance(base , type('')) or
             not (base.startswith('http://') or base.startswith('https://'))):
-            web = "Configuration Error: TRACKER_WEB isn't a " \
-                "fully-qualified URL"
+            web = "https://tracker.url" + base + self.classname + issueid
         else:
             if not base.endswith('/'):
                 base = base + '/'


Regards,
Nerijus

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.