PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-31467

Twitter portlet uses incorrect base URL for retrieving tweets; tweets do not show up in activities stream

    Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      The twitter portlet uses this incorrect (deprecated, no longer supported) prefix:

      	private static final String _URL =
      		"http://twitter.com/statuses/user_timeline/";
      

      This causes tweets to not show up in the activities stream.

      It needs to be udpated to use this:

              private static final String _URL =
                      "http://api.twitter.com/1/statuses/user_timeline/";
      

        Activity

        Hide
        Christine Pince (Inactive) added a comment -

        Reproduced on:
        Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: f20ae16c7c6cf047ce07fcaee8dd9e389b6301ec.
        Plugins 6.2.x GIT ID: 6afa94b9c21a8f46bd8a955bd43afe6b8b93bf4b.

        Show
        Christine Pince (Inactive) added a comment - Reproduced on: Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: f20ae16c7c6cf047ce07fcaee8dd9e389b6301ec. Plugins 6.2.x GIT ID: 6afa94b9c21a8f46bd8a955bd43afe6b8b93bf4b.
        Hide
        Ryan Park added a comment - - edited

        The new Twitter API requires authentication.

        {"errors":[{"message":"Bad Authentication data","code":215}]}
        
        Show
        Ryan Park added a comment - - edited The new Twitter API requires authentication. { "errors" :[{ "message" : "Bad Authentication data" , "code" :215}]}
        Hide
        Shinn Lok added a comment -

        https://dev.twitter.com/docs/rate-limiting#rest

        Unauthenticated calls are permitted 150 requests per hour. Unauthenticated calls are measured against the public facing IP of the server or device making the request.

        OAuth calls are permitted 350 requests per hour and are measured against the oauth_token used in the request.

        Show
        Shinn Lok added a comment - https://dev.twitter.com/docs/rate-limiting#rest Unauthenticated calls are permitted 150 requests per hour. Unauthenticated calls are measured against the public facing IP of the server or device making the request. OAuth calls are permitted 350 requests per hour and are measured against the oauth_token used in the request.
        Hide
        Christine Pince (Inactive) added a comment - - edited

        PASSED Manual Testing with the following steps

        1. Deploy Twitter portlet
        2. Navigate to My Public Pages
        3. Add Twitter portlet
        4. Add Activities portlet
        5. Configure Twitter portlet to twitter account
        6. Wait 5 min
        7. Assert tweets display on activities portlet

        Fixed in:
        Tomcat 6 + MySQL 5. Portal 6.0.x EE GIT ID: 3c92a27e3599bebb77d0f17210f1cd01eb27e425
        Plugins 6.0.x EE GIT ID: b8c0efecc94e28f7d6dcc35d5d9b1fc5ec95342c.
        Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: d515bab505ad0648cb3dea13487f05a37574b575.
        Plugins 6.1.x EE GIT ID: 95adfdfa0c1d1c193234b9d28b870cd87c5a6f08.
        Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: 175087b478b7c044912f20fcd9772a73e1e733e0.
        Plugins 6.2.x GIT ID: 60d88d1d703c2ea3b14a9c3ed41369f10cec29c5.

        Show
        Christine Pince (Inactive) added a comment - - edited PASSED Manual Testing with the following steps Deploy Twitter portlet Navigate to My Public Pages Add Twitter portlet Add Activities portlet Configure Twitter portlet to twitter account Wait 5 min Assert tweets display on activities portlet Fixed in: Tomcat 6 + MySQL 5. Portal 6.0.x EE GIT ID: 3c92a27e3599bebb77d0f17210f1cd01eb27e425 Plugins 6.0.x EE GIT ID: b8c0efecc94e28f7d6dcc35d5d9b1fc5ec95342c. Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: d515bab505ad0648cb3dea13487f05a37574b575. Plugins 6.1.x EE GIT ID: 95adfdfa0c1d1c193234b9d28b870cd87c5a6f08. Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: 175087b478b7c044912f20fcd9772a73e1e733e0. Plugins 6.2.x GIT ID: 60d88d1d703c2ea3b14a9c3ed41369f10cec29c5.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 9 weeks, 2 days ago

              Development

                Structure Helper Panel