WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9148 closed defect (bug) (fixed)

Unable to update image Summary using AtomPub

Reported by: tarmes Owned by: josephscott
Milestone: 2.7.2 Priority: normal
Severity: normal Version: 2.7
Component: AtomPub Keywords:
Focuses: Cc:

Description

If I GET an image's metadata the summary node contains the image caption.

When PUTing this data I can successfully change a number of fields (title, description (content), etc) but the summary does not change.

Attachments (1)

wp-app.php.diff (436 bytes) - added by josephscott 6 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 @josephscott6 years ago

  • Owner changed from anonymous to josephscott

Just to remind myself when I look at this again, the <summary> element is populated from the caption field for the media file in WP.

comment:2 @ryan6 years ago

  • Component changed from General to AtomPub

@josephscott6 years ago

comment:3 @josephscott6 years ago

Added attachment to look for the media description field in the AtomPub summary field instead of the content field. This fixes the problem of being able to update the description field but still feels a bit odd.

I guess technically it's correct though since the spec says the content field MUST be empty when there's a src attribute value.

comment:4 @westi6 years ago

  • Cc westi added

comment:5 @westi6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10751]) Attachment metadata is stored in the summary field in AtomPub requests. Fixes #9148 props josephscott.

comment:6 @westi6 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

For 2.7 branch

comment:7 @westi6 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [10752]) Attachment metadata is stored in the summary field in AtomPub requests. Fixes #9148 for 2.7.2 props josephscott.

comment:8 @josephscott6 years ago

For future reference, the spec details reference is:

http://www.atompub.org/rfc4287.html#element.content

Basically, if you have a SRC attribute, then the content must be empty.

Note: See TracTickets for help on using tickets.