[Cuis-dev] possible issue in Network-Kernel package

Mark Volkmann r.mark.volkmann at gmail.com
Mon Oct 28 18:52:37 PDT 2024


The error seems to be in this code:

(scheme = 'http' or:[scheme = 'https'])
    ifFalse:[self error: 'Unsupported scheme: ', scheme].

If I comment that out, all the tests pass again.

The scheme variable is set with this line:

 scheme := (urlStream upToAll: '://') asLowercase.

I wonder if the upToAll: method changed recently.
I see that there have been several commits to the Network-Kernel package
recently.
The WebClient package also implements the upToAll: method.

On Mon, Oct 28, 2024 at 8:40 PM Mark Volkmann <r.mark.volkmann at gmail.com>
wrote:

> The error comes from the WebClient method initializeFromUrl.
> That method checks that the value of the scheme variable is either 'http'
> or 'https'.
> But the value is 'http:' with a colon.
> Perhaps something changed with the way the scheme is extracted from URLs.
> I'll keep digging.
>
> On Mon, Oct 28, 2024 at 8:36 PM Mark Volkmann <r.mark.volkmann at gmail.com>
> wrote:
>
>> After pulling the latest on Cuis-Smalltalk-Dev, launching the base image,
>> and selecting "Changes ... Install New Updates" from the World menu, I'm
>> getting an error that says "Unsupported scheme: http" when I run the unit
>> tests in my WebClientPlus package. I haven't been able to track down the
>> cause yet, but I can explain how to reproduce it.
>>
>> 1. git clone
>> https://github.com/mvolkmann/Cuis-Smalltalk-WebClientPlus.git
>> 2. Start the base image Cuis7.1-6770.image.
>> 3. Do not "Install New Updates".
>> 4. Evaluate "Feature require: 'WebClientPlus'." in a Workspace.
>> 5. Open an SUnit Test Runner window.
>> 6. Select "DogWebServerTests" and click the Run button.
>> 7. Note that all the tests pass.
>> 8. Open the World menu and select "Changes ... Install New Updates".
>> 9. Run the tests again and note that they all fail with the error
>> "Unsupported scheme: http:"
>>
>> I'll keep trying to track this down, but I wanted to share this in case
>> someone recognizes this error and knows how to fix it.
>>
>> --
>> R. Mark Volkmann
>> Object Computing, Inc.
>>
>
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241028/5d85b22b/attachment-0001.htm>


More information about the Cuis-dev mailing list