Hi,

Twitter4J has a following test case and it started to fail approximately 24 hours ago.
1. there are two users - "twit4j" and "twit4j2"
2. "twit4j" follows "twit4j2"
http://twitter.com/friendships/create/twit4j2.xml
3. "twit4j2" follows "twit4j"
http://twitter.com/friendships/create/twit4j.xml
4. sending a direct message from "twit4j" to "twit4j2" fails with 403 Forbidden("You cannot send messages to users who are not following you.").
http://twitter.com/direct_messages/new.xml

I'm attaching a debug log.
I couldn't find any open issues in the list.
But is this a known one?


It'll be nice if the API team can integrate my test cases which hits API regressions frequently.
Running the test cases is as simple as:
------------
$ svn checkout http://yusuke.homeip.net/svn/twitter4j/trunk twitter4j
$ mvn install
------------

Cheers,
--
Yusuke Yamamoto
yus...@mac.com

this email is: [x] bloggable/twittable [ ] ask first [ ] private
follow me on : http://twitter.com/yusukeyamamoto
subscribe me at : http://yusuke.homeip.net/blog/
[Sat Jul 04 00:55:46 JST 2009]Request: 
[Sat Jul 04 00:55:46 JST 2009]POST 
http://twitter.com/friendships/create/twit4j2.xml
[Sat Jul 04 00:55:46 JST 2009]OAuth base 
string:POST&http%3A%2F%2Ftwitter.com%2Ffriendships%2Fcreate%2Ftwit4j2.xml&oauth_consumer_key%3DcoJhWe2wD0plkGfYBAsfg%26oauth_nonce%3D485555714%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1246636546%26oauth_token%3D6358482-wwqkzmI3YOmM0JwouHCLd1rvuUJVf0QA5VD0s7Y04M%26oauth_version%3D1.0
[Sat Jul 04 00:55:46 JST 2009]OAuth signature:bYC8ZxKH4E2acL89pstLL/nr+j0=
[Sat Jul 04 00:55:46 JST 2009]Authorization: OAuth 
oauth_consumer_key="coJhWe2wD0plkGfYBAsfg",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1246636546",oauth_nonce="485555714",oauth_version="1.0",oauth_token="6358482-wwqkzmI3YOmM0JwouHCLd1rvuUJVf0QA5VD0s7Y04M",oauth_signature="bYC8ZxKH4E2acL89pstLL%2Fnr%2Bj0%3D"
[Sat Jul 04 00:55:46 JST 2009]X-Twitter-Client-URL: 
http://yusuke.homeip.net/twitter4j/en/twitter4j-undefined.xml
[Sat Jul 04 00:55:46 JST 2009]User-Agent: twitter4j 
http://yusuke.homeip.net/twitter4j/ /undefined
[Sat Jul 04 00:55:46 JST 2009]Accept-Encoding: gzip
[Sat Jul 04 00:55:46 JST 2009]X-Twitter-Client-Version: undefined
[Sat Jul 04 00:55:46 JST 2009]Post Params: 
[Sat Jul 04 00:55:46 JST 2009]Response: 
[Sat Jul 04 00:55:46 JST 2009]Status: 403 Forbidden
[Sat Jul 04 00:55:46 JST 2009]X-Transaction: 1246636546-37594-20498
[Sat Jul 04 00:55:46 JST 2009]HTTP/1.1 403 Forbidden
[Sat Jul 04 00:55:46 JST 2009]Set-Cookie: 
_twitter_sess=BAh7CToJdXNlcmkD0gVhOhNwYXNzd29yZF90b2tlbiItZmZlMmE2ZTlkMzg3%250AYTFkZjk5ODM0NTY0NTQ0OGViNmU5MTgzYjc0YzoHaWQiJTdhNzQ3M2M5M2Ex%250AOWM5YmM3MTU4MGVjYTBlNjgwMjVmIgpmbGFzaElDOidBY3Rpb25Db250cm9s%250AbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--e2387eceeea3d2907c22b93a236054d0afe7b0f3;
 domain=.twitter.com; path=/
[Sat Jul 04 00:55:46 JST 2009]Set-Cookie: lang=en; path=/
[Sat Jul 04 00:55:46 JST 2009]Set-Cookie: lang=en; path=/
[Sat Jul 04 00:55:46 JST 2009]Date: Fri, 03 Jul 2009 15:55:46 GMT
[Sat Jul 04 00:55:46 JST 2009]Pragma: no-cache
[Sat Jul 04 00:55:46 JST 2009]Content-Type: application/xml; charset=utf-8
[Sat Jul 04 00:55:46 JST 2009]Cache-Control: no-cache, no-store, 
must-revalidate, pre-check=0, post-check=0
[Sat Jul 04 00:55:46 JST 2009]X-Revision: 
010382b250edb838a5150b55e06469f866883024
[Sat Jul 04 00:55:46 JST 2009]Connection: close
[Sat Jul 04 00:55:46 JST 2009]Content-Length: 161
[Sat Jul 04 00:55:46 JST 2009]Content-Encoding: gzip
[Sat Jul 04 00:55:46 JST 2009]Expires: Tue, 31 Mar 1981 05:00:00 GMT
[Sat Jul 04 00:55:46 JST 2009]Server: hi
[Sat Jul 04 00:55:46 JST 2009]Last-Modified: Fri, 03 Jul 2009 15:55:46 GMT
[Sat Jul 04 00:55:46 JST 2009]Vary: Accept-Encoding
[Sat Jul 04 00:55:46 JST 2009]<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/friendships/create/twit4j2.xml</request>
  <error>Could not follow user: twit4j2 is already on your list.</error>
</hash>

[Sat Jul 04 00:55:46 JST 2009]Request: 
[Sat Jul 04 00:55:46 JST 2009]POST 
http://twitter.com/friendships/create/twit4j.xml
[Sat Jul 04 00:55:46 JST 2009]OAuth base 
string:POST&http%3A%2F%2Ftwitter.com%2Ffriendships%2Fcreate%2Ftwit4j.xml&oauth_consumer_key%3DcoJhWe2wD0plkGfYBAsfg%26oauth_nonce%3D-273835297%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1246636546%26oauth_token%3D6377362-kW0YV1ymaqEUCSHP29ux169mDeA4kQfhEuqkdvHk%26oauth_version%3D1.0
[Sat Jul 04 00:55:46 JST 2009]OAuth signature:GgynK2rEdArxDEH9xK4YoWfuVKw=
[Sat Jul 04 00:55:46 JST 2009]Authorization: OAuth 
oauth_consumer_key="coJhWe2wD0plkGfYBAsfg",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1246636546",oauth_nonce="-273835297",oauth_version="1.0",oauth_token="6377362-kW0YV1ymaqEUCSHP29ux169mDeA4kQfhEuqkdvHk",oauth_signature="GgynK2rEdArxDEH9xK4YoWfuVKw%3D"
[Sat Jul 04 00:55:46 JST 2009]X-Twitter-Client-URL: 
http://yusuke.homeip.net/twitter4j/en/twitter4j-undefined.xml
[Sat Jul 04 00:55:46 JST 2009]User-Agent: twitter4j 
http://yusuke.homeip.net/twitter4j/ /undefined
[Sat Jul 04 00:55:46 JST 2009]Accept-Encoding: gzip
[Sat Jul 04 00:55:46 JST 2009]X-Twitter-Client-Version: undefined
[Sat Jul 04 00:55:46 JST 2009]Post Params: 
[Sat Jul 04 00:55:47 JST 2009]Response: 
[Sat Jul 04 00:55:47 JST 2009]Status: 200 OK
[Sat Jul 04 00:55:47 JST 2009]X-Transaction: 1246636547-65433-16371
[Sat Jul 04 00:55:47 JST 2009]HTTP/1.1 200 OK
[Sat Jul 04 00:55:47 JST 2009]Set-Cookie: 
_twitter_sess=BAh7CToJdXNlcmkDkk9hOhNwYXNzd29yZF90b2tlbiItOGIxOTIxOWU0N2I3%250AODJhNTE4ODk1MWU0MjI5M2FmNjJkNmEzYjRmZDoHaWQiJTUzMWNkMzVlZmJk%250AZTc1ZGViMDdkM2YwZDE4M2Y1ZmU1IgpmbGFzaElDOidBY3Rpb25Db250cm9s%250AbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--030ab5f9c2a7907e9ad4cbccc928657447ed2d4c;
 domain=.twitter.com; path=/
[Sat Jul 04 00:55:47 JST 2009]Set-Cookie: lang=en; path=/
[Sat Jul 04 00:55:47 JST 2009]Set-Cookie: lang=en; path=/
[Sat Jul 04 00:55:47 JST 2009]ETag: "43ec6d4642b78474378821d7bc2bca3b"-gzip
[Sat Jul 04 00:55:47 JST 2009]Date: Fri, 03 Jul 2009 15:55:47 GMT
[Sat Jul 04 00:55:47 JST 2009]Pragma: no-cache
[Sat Jul 04 00:55:47 JST 2009]Content-Type: application/xml; charset=utf-8
[Sat Jul 04 00:55:47 JST 2009]Cache-Control: no-cache, no-store, 
must-revalidate, pre-check=0, post-check=0
[Sat Jul 04 00:55:47 JST 2009]X-Revision: 
010382b250edb838a5150b55e06469f866883024
[Sat Jul 04 00:55:47 JST 2009]Connection: close
[Sat Jul 04 00:55:47 JST 2009]Content-Length: 682
[Sat Jul 04 00:55:47 JST 2009]Content-Encoding: gzip
[Sat Jul 04 00:55:47 JST 2009]Expires: Tue, 31 Mar 1981 05:00:00 GMT
[Sat Jul 04 00:55:47 JST 2009]Server: hi
[Sat Jul 04 00:55:47 JST 2009]Last-Modified: Fri, 03 Jul 2009 15:55:47 GMT
[Sat Jul 04 00:55:47 JST 2009]Vary: Accept-Encoding
[Sat Jul 04 00:55:47 JST 2009]<?xml version="1.0" encoding="UTF-8"?>
<user>
  <id>6358482</id>
  <name>twit4j</name>
  <screen_name>twit4j</screen_name>
  <location>location:</location>
  <description>Hi there, I do test a lot!</description>
  
<profile_image_url>http://static.twitter.com/images/default_profile_normal.png</profile_image_url>
  <url>http://yusuke.homeip.net/twitter4j/</url>
  <protected>false</protected>
  <followers_count>27</followers_count>
  <profile_background_color>9ae4e8</profile_background_color>
  <profile_text_color>000000</profile_text_color>
  <profile_link_color>0000ff</profile_link_color>
  <profile_sidebar_fill_color>e0ff92</profile_sidebar_fill_color>
  <profile_sidebar_border_color>87bc44</profile_sidebar_border_color>
  <friends_count>4</friends_count>
  <created_at>Sun May 27 09:52:09 +0000 2007</created_at>
  <favourites_count>0</favourites_count>
  <utc_offset>-32400</utc_offset>
  <time_zone>Alaska</time_zone>
  
<profile_background_image_url>http://static.twitter.com/images/themes/theme1/bg.gif</profile_background_image_url>
  <profile_background_tile>false</profile_background_tile>
  <statuses_count>4274</statuses_count>
  <notifications>false</notifications>
  <verified>false</verified>
  <following>false</following>
  <status>
    <created_at>Fri Jul 03 15:54:49 +0000 2009</created_at>
    <id>2455580739</id>
    <text>7/4:id1</text>
    <source>&lt;a 
href=&quot;http://yusuke.homeip.net/twitter4j/&quot;&gt;Twitter4J&lt;/a&gt;</source>
    <truncated>false</truncated>
    <in_reply_to_status_id></in_reply_to_status_id>
    <in_reply_to_user_id></in_reply_to_user_id>
    <favorited>false</favorited>
    <in_reply_to_screen_name></in_reply_to_screen_name>
  </status>
</user>

[Sat Jul 04 00:55:47 JST 2009]Request: 
[Sat Jul 04 00:55:47 JST 2009]POST http://twitter.com/direct_messages/new.xml
[Sat Jul 04 00:55:47 JST 2009]OAuth base 
string:POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml&oauth_consumer_key%3DcoJhWe2wD0plkGfYBAsfg%26oauth_nonce%3D2433019992%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1246636547%26oauth_token%3D6358482-wwqkzmI3YOmM0JwouHCLd1rvuUJVf0QA5VD0s7Y04M%26oauth_version%3D1.0%26text%3DSat%2520Jul%252004%252000%253A55%253A47%2520JST%25202009%253Adirectmessage%2520test%26user%3Dtwit4j2
[Sat Jul 04 00:55:47 JST 2009]OAuth signature:r8TL4TWPvjGi5Pw84Ie0wMSKKYc=
[Sat Jul 04 00:55:47 JST 2009]Authorization: OAuth 
oauth_consumer_key="coJhWe2wD0plkGfYBAsfg",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1246636547",oauth_nonce="2433019992",oauth_version="1.0",oauth_token="6358482-wwqkzmI3YOmM0JwouHCLd1rvuUJVf0QA5VD0s7Y04M",oauth_signature="r8TL4TWPvjGi5Pw84Ie0wMSKKYc%3D"
[Sat Jul 04 00:55:47 JST 2009]X-Twitter-Client-URL: 
http://yusuke.homeip.net/twitter4j/en/twitter4j-undefined.xml
[Sat Jul 04 00:55:47 JST 2009]User-Agent: twitter4j 
http://yusuke.homeip.net/twitter4j/ /undefined
[Sat Jul 04 00:55:47 JST 2009]Accept-Encoding: gzip
[Sat Jul 04 00:55:47 JST 2009]X-Twitter-Client-Version: undefined
[Sat Jul 04 00:55:47 JST 2009]Post Params: 
user=twit4j2&text=Sat+Jul+04+00%3A55%3A47+JST+2009%3Adirectmessage+test
[Sat Jul 04 00:55:47 JST 2009]Response: 
[Sat Jul 04 00:55:47 JST 2009]Status: 403 Forbidden
[Sat Jul 04 00:55:47 JST 2009]X-Transaction: 1246636547-14830-26528
[Sat Jul 04 00:55:47 JST 2009]HTTP/1.1 403 Forbidden
[Sat Jul 04 00:55:47 JST 2009]Set-Cookie: 
_twitter_sess=BAh7CToJdXNlcmkD0gVhOhNwYXNzd29yZF90b2tlbiItZmZlMmE2ZTlkMzg3%250AYTFkZjk5ODM0NTY0NTQ0OGViNmU5MTgzYjc0YzoHaWQiJWQ1OWI0ODgwYjBi%250AZDg5OGUxYzA0YzlmNTRiZDEzNjc3IgpmbGFzaElDOidBY3Rpb25Db250cm9s%250AbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--b553048a52531b8f84267d62bd0327a011002a42;
 domain=.twitter.com; path=/
[Sat Jul 04 00:55:47 JST 2009]Set-Cookie: lang=en; path=/
[Sat Jul 04 00:55:47 JST 2009]Set-Cookie: lang=en; path=/
[Sat Jul 04 00:55:47 JST 2009]Date: Fri, 03 Jul 2009 15:55:47 GMT
[Sat Jul 04 00:55:47 JST 2009]Pragma: no-cache
[Sat Jul 04 00:55:47 JST 2009]Content-Type: application/xml; charset=utf-8
[Sat Jul 04 00:55:47 JST 2009]Cache-Control: no-cache, no-store, 
must-revalidate, pre-check=0, post-check=0
[Sat Jul 04 00:55:47 JST 2009]X-Revision: 
010382b250edb838a5150b55e06469f866883024
[Sat Jul 04 00:55:47 JST 2009]Connection: close
[Sat Jul 04 00:55:47 JST 2009]Content-Length: 156
[Sat Jul 04 00:55:47 JST 2009]Content-Encoding: gzip
[Sat Jul 04 00:55:47 JST 2009]Expires: Tue, 31 Mar 1981 05:00:00 GMT
[Sat Jul 04 00:55:47 JST 2009]Server: hi
[Sat Jul 04 00:55:47 JST 2009]Last-Modified: Fri, 03 Jul 2009 15:55:47 GMT
[Sat Jul 04 00:55:47 JST 2009]Vary: Accept-Encoding
[Sat Jul 04 00:55:47 JST 2009]<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/direct_messages/new.xml</request>
  <error>You cannot send messages to users who are not following you.</error>
</hash>

Reply via email to