Uploaded image for project: 'Spring Social'
  1. Spring Social
  2. SOCIAL-145

Deserialization error on WorkEntry when entry contains location, position or description

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.RC1
    • Component/s: None
    • Labels:
      None

      Description

      Depending on what information is entered by FB user, a work entry may include location, position, and/or description fields. These are neither being declared nor ignored in WorkEntryMixin and thus an exception will be thrown while attempting to deserialize if those fields are present.

      Should consider adding those fields to WorkEntry. And to guard against any problems with unexpected fields, should also ignore unknown fields.

        Activity

        Hide
        habuma Craig Walls added a comment -

        Added @JsonIgnoreProperties on all Facebook model mixins to avoid this kind of problem. As a followup, we should probably add some of these ignored fields to the model classes.

        Show
        habuma Craig Walls added a comment - Added @JsonIgnoreProperties on all Facebook model mixins to avoid this kind of problem. As a followup, we should probably add some of these ignored fields to the model classes.

          People

          • Assignee:
            habuma Craig Walls
            Reporter:
            habuma Craig Walls
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: