List Info

Thread: More test weirdness




More test weirdness
user name
2006-02-03 18:32:14
I've decurled hammer/creataccounts.py, but when I tested it
against
cosmo-test.osafoundation.org I found it does not work (got
403 I think).
Assuming I broke something in the conversion I then tried
the original,
but I get the same results with the original. So I am
wondering if this
has ever worked, or if it is incompatible with whatever is
at
cosmo-test. It seems to work fine on localhost.

I also did some more experiments with silmut, and noticed
some
differences between localhost and the remote cosmo-test. I
don't know if
these are expected. First, when I did a GET for /home/test1
on
cosmo-test, it replied with 302, pointing to /home/test1/
(200 if I
originally pointed to /home/test1/). On localhost I get 401
for both
forms. One difference at least is that I am running Windows
XP on localhost.

-- 
  Heikki Toivonen


_______________________________________________
Cosmo mailing list
Cosmoosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo
More test weirdness
user name
2006-02-03 18:50:14
On 2/3/06, Heikki Toivonen <heikkiosafoundation.org>
wrote:
> I've decurled hammer/creataccounts.py, but when I
tested it against
> cosmo-test.osafoundation.org I found it does not work
(got 403 I think).

not directly to your point, but fyi: cosmo-test is running
0.2.7. i'll
announce when 0.3 is available there.

> Assuming I broke something in the conversion I then
tried the original,
> but I get the same results with the original. So I am
wondering if this
> has ever worked, or if it is incompatible with whatever
is at
> cosmo-test. It seems to work fine on localhost.

yes, it has always worked  i'd have
to look at the logs on
cosmo-test to get more information.

> I also did some more experiments with silmut, and
noticed some
> differences between localhost and the remote
cosmo-test. I don't know if
> these are expected. First, when I did a GET for
/home/test1 on
> cosmo-test, it replied with 302, pointing to
/home/test1/ (200 if I
> originally pointed to /home/test1/). On localhost I get
401 for both
> forms. One difference at least is that I am running
Windows XP on localhost.

the behavior you see on cosmo-test is the expected behavior.
i don't
know what version you're running on your local machine, but
it's
possible it lacks the bug fix i made some time ago that
causes
/home/test1 to redirect to /home/test1/.
_______________________________________________
Cosmo mailing list
Cosmoosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo
More test weirdness
user name
2006-02-04 02:51:22
On 2/3/06, Brian Moseley <bcmosafoundation.org>
wrote:

> the behavior you see on cosmo-test is the expected
behavior. i don't
> know what version you're running on your local machine,
but it's
> possible it lacks the bug fix i made some time ago that
causes
> /home/test1 to redirect to /home/test1/.

by the way - the proper way to construct urls is to append
the
trailing / for collection urls. urls without / indicate
non-collection
resources, and /home/test1 certainly isn't that.

i have a special hack in cosmo for GET and HEAD that realize
when you
said /home/test1 you really meant /home/test1/, but that
won't happen
for any other method, and by including the trailing / you
keep
yourself from needing to follow the redirect.
_______________________________________________
Cosmo mailing list
Cosmoosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo
More test weirdness
user name
2006-02-04 01:29:26
On 2/3/06, Heikki Toivonen <heikkiosafoundation.org>
wrote:
> I've decurled hammer/creataccounts.py, but when I
tested it against
> cosmo-test.osafoundation.org I found it does not work
(got 403 I think).
> Assuming I broke something in the conversion I then
tried the original,
> but I get the same results with the original. So I am
wondering if this
> has ever worked, or if it is incompatible with whatever
is at
> cosmo-test. It seems to work fine on localhost.

running the latest version of createaccounts.py from the
trunk against
the cosmo 0.2.7 server on cosmo-test:8080:

bcmcosmo-test:~/cosmo/src/test/hammer$
./createaccounts.py -s
http://localhost:8080 -n
10 -f 350
Unhandled response code: 403

the access log says:

127.0.0.1 - - [03/Feb/2006:17:15:32 -0800] "PUT
/cmp/user/test350
HTTP/1.1" 403 - "-" "-"

the url space for cmp in cosmo 0.2 is /api; in 0.3 that's
been changed
to /cmp. that hasn't been reflected in the cmp documentation
yet. i
plan to do that along with a bump in the cmp version. we
also have
adding explicit version negotation to the protocol on the
todo list.

your localhost build must be 0.3. makes sense.

perhaps a command line option on the hammer scripts that we
can use to
signify whether we're talking to a "cmp 0.2"
server or a "cmp 0.3"
one?

> I also did some more experiments with silmut, and
noticed some
> differences between localhost and the remote
cosmo-test. I don't know if
> these are expected. First, when I did a GET for
/home/test1 on
> cosmo-test, it replied with 302, pointing to
/home/test1/ (200 if I
> originally pointed to /home/test1/). On localhost I get
401 for both
> forms. One difference at least is that I am running
Windows XP on localhost.

sounds like the /home/test1 -> /home/test1/ redirection
bug fix didn't
make it to the trunk. i'll figure that out, thanks.
_______________________________________________
Cosmo mailing list
Cosmoosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo
More test weirdness
user name
2006-02-06 22:38:37
Brian Moseley wrote:
> the url space for cmp in cosmo 0.2 is /api; in 0.3
that's been changed
> to /cmp. that hasn't been reflected in the cmp
documentation yet. i
> plan to do that along with a bump in the cmp version.
we also have
> adding explicit version negotation to the protocol on
the todo list.
> 
> perhaps a command line option on the hammer scripts
that we can use to
> signify whether we're talking to a "cmp 0.2"
server or a "cmp 0.3"
> one?

On cosmo-test /cosmo/api returns 404, while /cosmo/cmp seems
to work. So
I am somewhat confused as to what the difference between 0.2
and 0.3 is.

-- 
  Heikki Toivonen


_______________________________________________
Cosmo mailing list
Cosmoosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo
More test weirdness
user name
2006-02-06 23:49:49
On 2/6/06, Heikki Toivonen <heikkiosafoundation.org>
wrote:

> On cosmo-test /cosmo/api returns 404, while /cosmo/cmp
seems to work. So
> I am somewhat confused as to what the difference
between 0.2 and 0.3 is.

yeah, cosmo-test is running 0.3 now. did i not announce
that? maybe i
only announced it to priss and mimi. sorry.

you can always tell the version by going to the ui and
looking at the
about page.
_______________________________________________
Cosmo mailing list
Cosmoosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo
[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )