Giter Site home page Giter Site logo

magott / spring-social-yammer Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 20.0 1.44 MB

The Spring Social implementation for Yammer

Home Page: http://www.springsource.org/spring-social

License: Apache License 2.0

Groovy 4.17% Shell 2.96% Java 77.30% CSS 3.03% XSLT 12.53%

spring-social-yammer's People

Contributors

habuma avatar magott avatar mixamlv avatar spring-builds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spring-social-yammer's Issues

Cannot authorize

I am getting the following when authorizing

WARN : org.springframework.web.client.RestTemplate - POST request for "https://www.yammer.com/oauth2/access_token" resulted in 404 (Not Found); invoking error handler
DEBUG: org.apache.http.wire - << "3E[\r][\n]"
DEBUG: org.apache.http.wire - << "No Access Token, Request Token, or valid ROPC parameters found"
DEBUG: org.apache.http.wire - << "[\r][\n]"
DEBUG: org.apache.http.wire - << "0[\r][\n]"
DEBUG: org.apache.http.wire - << "[\r][\n]"
DEBUG: org.apache.http.impl.conn.BasicClientConnectionManager - Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@183ee75d
DEBUG: org.apache.http.impl.conn.BasicClientConnectionManager - Connection can be kept alive indefinitely
WARN : org.springframework.social.connect.web.ConnectSupport - HttpClientErrorException while completing connection: 404 Not Found
WARN : org.springframework.social.connect.web.ConnectSupport - Response body: No Access Token, Request Token, or valid ROPC parameters found
WARN : org.springframework.social.connect.web.ProviderSignInController - Exception while handling OAuth2 callback (404 Not Found). Redirecting to /signin

Is there something I am missing in my configuration?

YammerThreadStatsMixin json property

Status updates are throwing exceptions:

org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unrecognized field "shares" (Class org.springframework.social.yammer.api
.YammerThread$ThreadStats), not marked as ignorable
at [Source: org.apache.http.conn.EofSensorInputStream@161f888; line: 1, column: 1193](through reference chain: org.springframework.social.yammer.api.ThreadStat
s["shares"]); nested exception is org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "shares" (Class org.springframework.social.yamme
r.api.YammerThread$ThreadStats), not marked as ignorable
at [Source: org.apache.http.conn.EofSensorInputStream@161f888; line: 1, column: 1193](through reference chain: org.springframework.social.yammer.api.ThreadStat
s["shares"])
at org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:127)
at org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:153)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:81)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:446)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:294)
at org.springframework.social.yammer.api.impl.MessageTemplate.postUpdate(MessageTemplate.java:97)
at org.springframework.social.yammer.api.impl.MessageTemplate.postUpdate(MessageTemplate.java:90)


We need to include
@JsonIgnoreProperties(ignoreUnknown=true)

above
abstract static class YammerThreadStatsMixin

please check-in a new class including ignore property.

Thank You
Satish Pandey

Oauth not working for users other then who created the application

Hello,

I am using this package to connect yammer user accounts. It am able to connect the user account who created the application but for other users it's not working. Also if i remove the token from the connected account (same who created the application), i am not able to reconnect it.

I tried with POST/GET both but nothing works for me..

--------------------------------------------------------------------------- Sample Stack Trace ----------------------------------------------------

2012-Jun-20 16:41:24 WARN [http-8080-1] org.apache.http.impl.client.DefaultHttpClient:1095 - Authentication error: Unable to respond to any of these challenges: {}
2012-Jun-20 16:41:24 WARN [http-8080-1] org.springframework.web.client.RestTemplate:478 - GET request for "https://www.yammer.com/oauth2/access_token?client_id=zlFlQNVPwAL2EdBefl8Ow&client_secret=3aUo5FpsU8oDqYW24NQtEFxtBniMM14Gt6m7lT6Lcs&code=GA8HWbcqk461mWOk4uLcQ" resulted in 401 (Unauthorized); invoking error handler
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "2e[\r][\n]"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:77 - << "Code supplied does not match the Request Token"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "[\r][\n]"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "0[\r][\n]"
2012-Jun-20 16:41:24 DEBUG [http-8080-1] org.apache.http.wire:63 - << "[\r][\n]"

YammerMessage->LikedBy->Name->user_id

YammerMessage.LikedBy.Name now has a new field called user_id of type long which means the call to get messages fails when a message contains a likedBy.

Stacktrace :

Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "user_id" (Class org.springframework.social.yammer.api.YammerMessage$LikedBy$Name), not marked as ignorable
at [Source: org.apache.http.conn.EofSensorInputStream@681497b1; line: 1, column: 20048](through reference chain: org.springframework.social.yammer.api.Name["user_id"])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.