Quantcast

tracker URL http vs https

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

tracker URL http vs https

Nerijus Baliunas
Hello,

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>

If I put the full http or https URL in web setting, then after the login it redirects
to that http or https URL, which I don't want.

Regards,
Nerijus

------------------------------------------------------------------------------
_______________________________________________
Roundup-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/roundup-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: tracker URL http vs https

Nerijus Baliunas
On Sun, 13 Dec 2015 19:35:43 +0200 Nerijus Baliunas <[hidden email]> 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

------------------------------------------------------------------------------
_______________________________________________
Roundup-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/roundup-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: tracker URL http vs https

Bernhard Reiter-7
In reply to this post by Nerijus Baliunas
Hi!

On Sunday 13 December 2015 at 18:35:43, Nerijus Baliunas wrote:
> 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 wonder what the use case for the behaviour is?
Are there any clients out there that cannot do TLS?

If this is a behaviour you need, you could either
a) open an issue and attach description and patch
   so it may be considered in subsequent releases.
b) add it to the wiki so that others in need may find it.

Best,
Bernhard

--
www.intevation.de/~bernhard (CEO)    www.fsfe.org (Founding GA Member)
Intevation GmbH, Osnabrück, Germany; Amtsgericht Osnabrück, HRB 18998
Owned and run by Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

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

_______________________________________________
Roundup-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/roundup-users

signature.asc (484 bytes) Download Attachment
Loading...