Bug#987412: gpsd ntrip mountpoint (aka stream) parsing and use error

2021-04-25 Thread Bernd Zeimetz
Hi Aiden,

forwarded to upstream: https://gitlab.com/gpsd/gpsd/-/issues/136

Shouldn't take too long to fix, maybe I'll have a look into it


Bernd

On Sun, 2021-04-25 at 10:57 +, Aiden Morrison wrote:
> Hi Bernd,
> 
> I can get this to manifest with
> ntrip://SNTu0:pa...@caster.dyndns.org:2101/NOT
> 
> The same caster/mountpoint are working with each of the Ublox u-center
> software, the BKG Ntrip Client (https://igs.bkg.bund.de/ntrip/bnc) and the
> previously mentioned ntripclient code on github.
> BKG Ntrip Client - BNC
> BKG Ntrip Client (BNC) The BKG Ntrip Client (BNC) is an Open Source multi-
> stream client program designed for a variety of real-time GNSS
> applications.
> igs.bkg.bund.de
> Please let me know if further information is helpful.
> 
> -Aiden
> From: Bernd Zeimetz 
> Sent: 25 April 2021 11:52
> To: Aiden Morrison ; 987...@bugs.debian.org
> <987...@bugs.debian.org>
> Subject: Re: Bug#987412: gpsd ntrip mountpoint (aka stream) parsing and use
> error 
> Hi,
> 
> do you have a example url for me? Maybe a public ntrip caster with auth,
> that
> shows the bug?
> 
> Thanks,
> 
> Bernd
> 
> On Fri, 2021-04-23 at 13:30 +, Aiden Morrison wrote:
> > Package: gpsd
> > Version: 3.22 (revision 3.22)
> > Error text: gpsd:ERROR not authorized for Ntrip stream
> > caster.address.extension/mountpoint
> >  
> > Reproduction: provide an ntrip stream address per the documentation of
> > gpsd
> > at
> > (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgpsd.gitlab.io%2Fgpsd%2Fgpsd.htmldata=04%7C01%7Caiden.morrison%40sintef.no%7Ced4144881c454d0f9b3708d907cfd559%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637549411485653196%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=J6W2QinFv7DlRv3%2BTzKDFRPcTbgLEbJ5yYUqTznZaiI%3Dreserved=0
> > ) in the form
> > "ntrip://username:passw...@address.of.caster:port/mountpoint" and note
> > that
> > gpsd will throw the above error.
> >  
> > If the configuration string is intentionally malformed to include a "/"
> > after the mountpoint name, this error is not thrown, however the
> > corrections are not sent to the attached GNSS receiver:
> >  
> > cgps reports string
> > {"class":"DEVICE","path":"ntrip://user:p...@address.of.caster:port/mountp
> > oi
> > nt/","activated":0} showing the malformed mountpoint identifier
> >  
> > I can connect to the same ntrip server
> > using 
> > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnunojpg%2Fntripclientdata=04%7C01%7Caiden.morrison%40sintef.no%7Ced4144881c454d0f9b3708d907cfd559%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637549411485653196%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=QjyVo3xXClMT1wKpQrYttB5LK37JIt%2FRBMR%2F44PGwNw%3Dreserved=0
> >  as well as two commercial
> > software packages, so the error appears to be in how gpsd is interpreting
> > the connection string.
> >  
> > If credentials would be helpful in reproducing this bug I can be
> > contacted
> > ataiden.morri...@sintef.no
> >  
> >  
> 

-- 
 Bernd ZeimetzDebian GNU/Linux Developer
 http://bzed.dehttp://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F



Bug#987412: gpsd ntrip mountpoint (aka stream) parsing and use error

2021-04-25 Thread Aiden Morrison
Hi Bernd,

I can get this to manifest with ntrip://SNTu0:pa...@caster.dyndns.org:2101/NOT

The same caster/mountpoint are working with each of the Ublox u-center 
software, the BKG Ntrip Client (https://igs.bkg.bund.de/ntrip/bnc) and the 
previously mentioned ntripclient code on github.
BKG Ntrip Client - BNC<https://igs.bkg.bund.de/ntrip/bnc>
BKG Ntrip Client (BNC) The BKG Ntrip Client (BNC) is an Open Source 
multi-stream client program designed for a variety of real-time GNSS 
applications.
igs.bkg.bund.de
Please let me know if further information is helpful.

-Aiden

From: Bernd Zeimetz 
Sent: 25 April 2021 11:52
To: Aiden Morrison ; 987...@bugs.debian.org 
<987...@bugs.debian.org>
Subject: Re: Bug#987412: gpsd ntrip mountpoint (aka stream) parsing and use 
error

Hi,

do you have a example url for me? Maybe a public ntrip caster with auth, that
shows the bug?

Thanks,

Bernd

On Fri, 2021-04-23 at 13:30 +, Aiden Morrison wrote:
> Package: gpsd
> Version: 3.22 (revision 3.22)
> Error text: gpsd:ERROR not authorized for Ntrip stream
> caster.address.extension/mountpoint
>
> Reproduction: provide an ntrip stream address per the documentation of gpsd
> at 
> (https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgpsd.gitlab.io%2Fgpsd%2Fgpsd.htmldata=04%7C01%7Caiden.morrison%40sintef.no%7Ced4144881c454d0f9b3708d907cfd559%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637549411485653196%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=J6W2QinFv7DlRv3%2BTzKDFRPcTbgLEbJ5yYUqTznZaiI%3Dreserved=0)
>  in the form
> "ntrip://username:passw...@address.of.caster:port/mountpoint" and note that
> gpsd will throw the above error.
>
> If the configuration string is intentionally malformed to include a "/"
> after the mountpoint name, this error is not thrown, however the
> corrections are not sent to the attached GNSS receiver:
>
> cgps reports string
> {"class":"DEVICE","path":"ntrip://user:p...@address.of.caster:port/mountpoi
> nt/","activated":0} showing the malformed mountpoint identifier
>
> I can connect to the same ntrip server
> using 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnunojpg%2Fntripclientdata=04%7C01%7Caiden.morrison%40sintef.no%7Ced4144881c454d0f9b3708d907cfd559%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637549411485653196%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=QjyVo3xXClMT1wKpQrYttB5LK37JIt%2FRBMR%2F44PGwNw%3Dreserved=0
>  as well as two commercial
> software packages, so the error appears to be in how gpsd is interpreting
> the connection string.
>
> If credentials would be helpful in reproducing this bug I can be contacted
> ataiden.morri...@sintef.no
>
>

--
 Bernd ZeimetzDebian GNU/Linux Developer
 
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fbzed.de%2Fdata=04%7C01%7Caiden.morrison%40sintef.no%7Ced4144881c454d0f9b3708d907cfd559%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637549411485653196%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=IaEVrk9tpjWMp1mlAq558pAgcrP5NAQGZiSKOHTZ0RI%3Dreserved=0

https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.debian.org%2Fdata=04%7C01%7Caiden.morrison%40sintef.no%7Ced4144881c454d0f9b3708d907cfd559%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C0%7C637549411485653196%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=OouRIFVC7%2BLsb9sefaUFFYPnbQ5%2FXosMRjGOTmllhtI%3Dreserved=0
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F




Bug#987412: gpsd ntrip mountpoint (aka stream) parsing and use error

2021-04-25 Thread Bernd Zeimetz
Hi,

do you have a example url for me? Maybe a public ntrip caster with auth, that
shows the bug?

Thanks,

Bernd

On Fri, 2021-04-23 at 13:30 +, Aiden Morrison wrote:
> Package: gpsd
> Version: 3.22 (revision 3.22)
> Error text: gpsd:ERROR not authorized for Ntrip stream
> caster.address.extension/mountpoint
>  
> Reproduction: provide an ntrip stream address per the documentation of gpsd
> at (https://gpsd.gitlab.io/gpsd/gpsd.html) in the form
> "ntrip://username:passw...@address.of.caster:port/mountpoint" and note that
> gpsd will throw the above error.
>  
> If the configuration string is intentionally malformed to include a "/"
> after the mountpoint name, this error is not thrown, however the
> corrections are not sent to the attached GNSS receiver:
>  
> cgps reports string
> {"class":"DEVICE","path":"ntrip://user:p...@address.of.caster:port/mountpoi
> nt/","activated":0} showing the malformed mountpoint identifier
>  
> I can connect to the same ntrip server
> using https://github.com/nunojpg/ntripclient as well as two commercial
> software packages, so the error appears to be in how gpsd is interpreting
> the connection string.
>  
> If credentials would be helpful in reproducing this bug I can be contacted
> ataiden.morri...@sintef.no
>  
>  

-- 
 Bernd ZeimetzDebian GNU/Linux Developer
 http://bzed.dehttp://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F



Bug#987412: gpsd ntrip mountpoint (aka stream) parsing and use error

2021-04-23 Thread Aiden Morrison
Package: gpsd
Version: 3.22 (revision 3.22)
Error text: gpsd:ERROR not authorized for Ntrip stream 
caster.address.extension/mountpoint

Reproduction: provide an ntrip stream address per the documentation of gpsd at 
(https://gpsd.gitlab.io/gpsd/gpsd.html) in the form 
"ntrip://username:passw...@address.of.caster:port/mountpoint" and note that 
gpsd will throw the above error.

If the configuration string is intentionally malformed to include a "/" after 
the mountpoint name, this error is not thrown, however the corrections are not 
sent to the attached GNSS receiver:

cgps reports string 
{"class":"DEVICE","path":"ntrip://user:p...@address.of.caster:port/mountpoint/","activated":0}
 showing the malformed mountpoint identifier

I can connect to the same ntrip server using 
https://github.com/nunojpg/ntripclient as well as two commercial software 
packages, so the error appears to be in how gpsd is interpreting the connection 
string.

If credentials would be helpful in reproducing this bug I can be contacted at 
aiden.morri...@sintef.no