Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It is easier to change the specification to fit the program than vice versa.


devel / comp.lang.smalltalk.dolphin / DolphinSure Error

SubjectAuthor
* DolphinSure ErrorCharybdis
`* Re: DolphinSure Errorjohn.a...@gmail.com
 `- Re: DolphinSure Errorjohn.a...@gmail.com

1
DolphinSure Error

<3d82218b-653a-4fce-b1f0-0ca1b23fa8b6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=232&group=comp.lang.smalltalk.dolphin#232

  copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a37:917:0:b0:6b5:b9a4:bdda with SMTP id 23-20020a370917000000b006b5b9a4bddamr11033548qkj.36.1658806548348;
Mon, 25 Jul 2022 20:35:48 -0700 (PDT)
X-Received: by 2002:a25:bb11:0:b0:668:f7ad:f446 with SMTP id
z17-20020a25bb11000000b00668f7adf446mr11268227ybg.56.1658806548163; Mon, 25
Jul 2022 20:35:48 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Mon, 25 Jul 2022 20:35:47 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fb90:cb26:9a46:a116:5895:dd97:bd12;
posting-account=2udubgoAAABgez-WKTNivXIO0pMo5fFC
NNTP-Posting-Host: 2607:fb90:cb26:9a46:a116:5895:dd97:bd12
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3d82218b-653a-4fce-b1f0-0ca1b23fa8b6n@googlegroups.com>
Subject: DolphinSure Error
From: charybdis571@gmail.com (Charybdis)
Injection-Date: Tue, 26 Jul 2022 03:35:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1530
 by: Charybdis - Tue, 26 Jul 2022 03:35 UTC

Hi all,
I have Dolphin 7.1.23 image installed and attempted to create a Digital Certificate.

MyOwnCertificate serial: 'MY100002' owner: 'My Own Company Inc.' details: 'security@company.com'

Received the following error:

an invalid MyOwnCertificate [STBFiler - Input stream contains an invalid class (AnsiString)].

As this concerns foundation classes and behaviors, any idea how to correct the problem?

Somewhat of a newbie here and I don't know whats causing this error.

Thanks

Re: DolphinSure Error

<b08c5475-2b32-4159-b761-091118fb9299n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=233&group=comp.lang.smalltalk.dolphin#233

  copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a05:620a:269a:b0:6b5:b769:2591 with SMTP id c26-20020a05620a269a00b006b5b7692591mr11597701qkp.293.1658824759663;
Tue, 26 Jul 2022 01:39:19 -0700 (PDT)
X-Received: by 2002:a25:1141:0:b0:671:7af2:f796 with SMTP id
62-20020a251141000000b006717af2f796mr64400ybr.283.1658824759330; Tue, 26 Jul
2022 01:39:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 26 Jul 2022 01:39:19 -0700 (PDT)
In-Reply-To: <3d82218b-653a-4fce-b1f0-0ca1b23fa8b6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.203.71.185; posting-account=OQ6sIwoAAAC1iWrFEUhdmRsgEkeDOgOm
NNTP-Posting-Host: 85.203.71.185
References: <3d82218b-653a-4fce-b1f0-0ca1b23fa8b6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b08c5475-2b32-4159-b761-091118fb9299n@googlegroups.com>
Subject: Re: DolphinSure Error
From: john.aspinall@gmail.com (john.a...@gmail.com)
Injection-Date: Tue, 26 Jul 2022 08:39:19 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3047
 by: john.a...@gmail.com - Tue, 26 Jul 2022 08:39 UTC

Hi - it looks like DolphinSure is out-of-date with the current String implementation in Dolphin 7.1.

This an be fixed by modifying the DolphinSureCertificateInfo class method binaryReadFrom:context: changing the reference to #String to #AnsiString :

binaryReadFrom: aStream context: anObject
"Answers an instance of this class from its binary STB representation on aStream. Because STB is inherently an insecure format
we must use an STBInFiler that especially guarded with a ValidatingClassLocator to that only expected, non-dangerous
classes can be loaded from the STB stream."

| inFiler validClasses |
validClasses := (Set new)
add: #Date;
add: #AnsiString; "<- change here"
add: #LargeInteger;
add: #SmallInteger;
add: self name;
yourself.
inFiler := (STBValidatingInFiler on: aStream)
validationBlock: [:className | validClasses identityIncludes: className];
context: anObject;
yourself.
^inFiler next

The initial part of the example should then work OK. However there look to be further errors when working through the examples in the Workspace that opens. I've raised an issue for these on the Dolphin GitHub repository:

https://github.com/dolphinsmalltalk/Dolphin/issues/1169

Cheers,

John Aspinall

On Tuesday, July 26, 2022 at 4:35:48 AM UTC+1, charyb...@gmail.com wrote:
> Hi all,
> I have Dolphin 7.1.23 image installed and attempted to create a Digital Certificate.
>
> MyOwnCertificate serial: 'MY100002' owner: 'My Own Company Inc.' details: 'secu...@company.com'
>
> Received the following error:
>
> an invalid MyOwnCertificate [STBFiler - Input stream contains an invalid class (AnsiString)].
>
> As this concerns foundation classes and behaviors, any idea how to correct the problem?
>
> Somewhat of a newbie here and I don't know whats causing this error.
>
> Thanks

Re: DolphinSure Error

<b8a5eb5d-4b92-410b-973a-fa9c18b84e16n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=234&group=comp.lang.smalltalk.dolphin#234

  copy link   Newsgroups: comp.lang.smalltalk.dolphin
X-Received: by 2002:a37:cc9:0:b0:6b5:ce98:334 with SMTP id 192-20020a370cc9000000b006b5ce980334mr13665064qkm.459.1658853214378;
Tue, 26 Jul 2022 09:33:34 -0700 (PDT)
X-Received: by 2002:a5b:40a:0:b0:670:ee95:c8f1 with SMTP id
m10-20020a5b040a000000b00670ee95c8f1mr14657919ybp.121.1658853214166; Tue, 26
Jul 2022 09:33:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 26 Jul 2022 09:33:33 -0700 (PDT)
In-Reply-To: <b08c5475-2b32-4159-b761-091118fb9299n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.203.71.185; posting-account=OQ6sIwoAAAC1iWrFEUhdmRsgEkeDOgOm
NNTP-Posting-Host: 85.203.71.185
References: <3d82218b-653a-4fce-b1f0-0ca1b23fa8b6n@googlegroups.com> <b08c5475-2b32-4159-b761-091118fb9299n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b8a5eb5d-4b92-410b-973a-fa9c18b84e16n@googlegroups.com>
Subject: Re: DolphinSure Error
From: john.aspinall@gmail.com (john.a...@gmail.com)
Injection-Date: Tue, 26 Jul 2022 16:33:34 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3385
 by: john.a...@gmail.com - Tue, 26 Jul 2022 16:33 UTC

Blair has submitted a fix to the issue; I've just rebuilt an image from the 7.1 branch and the DolphinSure examples now work OK.

Cheers.

John

On Tuesday, July 26, 2022 at 9:39:20 AM UTC+1, john.a...@gmail.com wrote:
> Hi - it looks like DolphinSure is out-of-date with the current String implementation in Dolphin 7.1.
>
> This an be fixed by modifying the DolphinSureCertificateInfo class method binaryReadFrom:context: changing the reference to #String to #AnsiString :
>
> binaryReadFrom: aStream context: anObject
> "Answers an instance of this class from its binary STB representation on aStream. Because STB is inherently an insecure format
> we must use an STBInFiler that especially guarded with a ValidatingClassLocator to that only expected, non-dangerous
> classes can be loaded from the STB stream."
>
> | inFiler validClasses |
> validClasses := (Set new)
> add: #Date;
> add: #AnsiString; "<- change here"
> add: #LargeInteger;
> add: #SmallInteger;
> add: self name;
> yourself.
> inFiler := (STBValidatingInFiler on: aStream)
> validationBlock: [:className | validClasses identityIncludes: className];
> context: anObject;
> yourself.
> ^inFiler next
>
> The initial part of the example should then work OK. However there look to be further errors when working through the examples in the Workspace that opens. I've raised an issue for these on the Dolphin GitHub repository:
>
> https://github.com/dolphinsmalltalk/Dolphin/issues/1169
>
> Cheers,
>
> John Aspinall
> On Tuesday, July 26, 2022 at 4:35:48 AM UTC+1, charyb...@gmail.com wrote:
> > Hi all,
> > I have Dolphin 7.1.23 image installed and attempted to create a Digital Certificate.
> >
> > MyOwnCertificate serial: 'MY100002' owner: 'My Own Company Inc.' details: 'secu...@company.com'
> >
> > Received the following error:
> >
> > an invalid MyOwnCertificate [STBFiler - Input stream contains an invalid class (AnsiString)].
> >
> > As this concerns foundation classes and behaviors, any idea how to correct the problem?
> >
> > Somewhat of a newbie here and I don't know whats causing this error.
> >
> > Thanks

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor