Accessing smallwiki from outside
Charles A. Monteiro
charles at datasof.com
Wed Sep 15 17:04:44 MEST 2004
Please provide the copystack.
Anyhow,
IPSocketAddress >>>hostAddressByName: aString
will return nil if passed '*'
The only way that I can tell that may be happenning is here:
Swazoo.SwazooSocket class>>>
ipAddressFor: aDNSOrIPAddressString
"return an IPAddress (in array format) from string. String can be in
number or DNS format"
| isIPAddress address stream |
isIPAddress := aDNSOrIPAddressString detect: [:ch | ch isAlphabetic]
ifNone: [true].
isIPAddress := isIPAddress = true.
isIPAddress
ifTrue:
[address := ByteArray new: 4.
stream := aDNSOrIPAddressString readStream.
address
at: 1 put: (Integer readFrom: (stream upTo: $.) readStream);
at: 2 put: (Integer readFrom: (stream upTo: $.) readStream);
at: 3 put: (Integer readFrom: (stream upTo: $.) readStream);
at: 4 put: (Integer readFrom: stream upToEnd readStream).
^address]
ifFalse: [^IPSocketAddress hostAddressByName: aDNSOrIPAddressString]
--------------------
For some reason , in your case , it must be that the character $* is
alphabetic, if it were not you would fall into the true block but as per
your comments you seem to be falling into the false block which will
certainly generate an error. I am also assuming that this is where you
crash i.e. given that you were running the SmallWiki.ServerTests.
So I have not really done much with locales, so this is a wild guess, can
it be that in your case $* isAlphabetic?
What do you get if you evaluate the following in a workspace:
$* isAlphabetic
-Charles
On Wed, 15 Sep 2004 13:32:08 +0200, Annick Fron
<Annick_Fron_AFC at compuserve.com> wrote:
> I ran the Smallwiki.ServerTests suite, and I have 2 failures, on the
> hostAddressByName I get a nil with name '*'.
> Probably this is a system configuration issue, since I don't have a DNS.
> How can I do ?
>
> Le 14 sept. 04, à 18:28, Sebastian Sastre a écrit :
>
>>
>> Mydyndns are redirecting all ports to your host? (or only 80 or 8080?)
>> Your firewall is admitting traffic for your smallwiki port?
>>
>> Sebastián Sastre
>> ssastre at seaswork.com.ar
>> www.seaswork.com.ar
>>
>>
>>> -----Mensaje original-----
>>> De: owner-smallwiki at iam.unibe.ch
>>> [mailto:owner-smallwiki at iam.unibe.ch] En nombre de Annick Fron
>>> Enviado el: Martes, 14 de Septiembre de 2004 13:07
>>> Para: smallwiki at iam.unibe.ch
>>> Asunto: Re: Accessing smallwiki from outside
>>>
>>>
>>> It does not work either on 9090.
>>>
>>> Le 14 sept. 04, à 17:57, Sebastian Sastre a écrit :
>>>
>>>>
>>>> Use a different port
>>>>
>>>> Sebastián Sastre
>>>> ssastre at seaswork.com.ar
>>>> www.seaswork.com.ar
>>>>
>>>>
>>>>> -----Mensaje original-----
>>>>> De: owner-smallwiki at iam.unibe.ch
>>>>> [mailto:owner-smallwiki at iam.unibe.ch] En nombre de Annick Fron
>>>>> Enviado el: Martes, 14 de Septiembre de 2004 12:16
>>>>> Para: smallwiki at iam.unibe.ch
>>>>> Asunto: Accessing smallwiki from outside
>>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I have downloaded smallwiki 1 and I want to access it through a
>>>>> dyndns address.
>>>>> I am able to check localhost:8080
>>>>> I am able to see tomcat on mydyndns:8080 (so it is not a
>>>>> firewall pb) but not smallwiki !! Should i launch swazoo as
>>>>> root on Linux ??
>>>>>
>>>>> =================
>>>>> Annick Fron - 04 93 22 88 18
>>>>> AFC Europe
>>>>> B.P. 111
>>>>> 977 avenue du Docteur Julien Lefebvre
>>>>> 06271 Villeneuve-Loubet Cedex France http://www.afceurope.com
>>>>>
>>>>> ---
>>>>> Incoming mail is certified Virus Free.
>>>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>>>> Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
>>>>>
>>>>>
>>>>
>>>> ---
>>>> Outgoing mail is certified Virus Free.
>>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>>> Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
>>>>
>>>>
>>>>
>>> =================
>>> Annick Fron - 04 93 22 88 18
>>> AFC Europe
>>> B.P. 111
>>> 977 avenue du Docteur Julien Lefebvre
>>> 06271 Villeneuve-Loubet Cedex France
>>> http://www.afceurope.com
>>>
>>>
>>> ---
>>> Incoming mail is certified Virus Free.
>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>> Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
>>>
>>>
>>
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
>>
>>
>>
> =================
> Annick Fron - 04 93 22 88 18
> AFC Europe
> B.P. 111
> 977 avenue du Docteur Julien Lefebvre
> 06271 Villeneuve-Loubet Cedex France
> http://www.afceurope.com
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the SmallWiki
mailing list