Make WordPress Core

Opened 15 years ago

Closed 12 months ago

Last modified 3 months ago

#19885 closed defect (bug) (wontfix)

Feed wfw Namespace no longer valid

Reported by: ajwagner777 Owned by:
Priority: normal Milestone:
Component: Feeds Version: 3.3.1
Severity: normal Keywords: has-patch close
Cc: Focuses:

Description

Related to this post ​http://wordpress.org/support/topic/rss-feed-wellformedweborg-offline?replies=2

A broken link scan of our website revealed that the link in the feeds to ​http://wellformedweb.org/CommentAPI/ (for the wfw namespace) is invalid. Going to that website reveals that the site has been taken down by the hosting company.

I found 2 references to that namespace in /wp-includes/feed-rss2.php and /wp-admin/includes/export.php and removed them, and the instances to the wfw namespace within the feed content. This fixed my issue.

This begs the larger question: should this be removed/replaced in the core if the site that references the namespace is no longer available?

Verified here: ​http://ww2.aaronwagner.net/feed/

Attachments (1)

19885.diff​ (557 bytes ) - added by solarissmoke 15 years ago.
Remove unused wfw namespace from export xml

Download all attachments as: .zip

Change History (15)

#1 @nacin
15 years ago

It's a shame that wellformedweb.org is down, but a namespace URL does not need to resolve. It may look like a URL, but it is just a unique identifier of the namespace. A validating parser would benefit from URL resolution, but that's it.

Not sure why we have wfw referenced in the export, as it is only used in feed-rss2.php for wfw:commentRss. Removing the namespace reference there will result in invalid XML.

#2 in reply to: ↑ description @solarissmoke
15 years ago

  • Keywords has-patch close added

A broken link scan of our website revealed that the link in the feeds to ​http://wellformedweb.org/CommentAPI/ (for the wfw namespace) is invalid. Going to that website reveals that the site has been taken down by the hosting company.

I think the problem is that your link checker is trying to resolve/visit XML namespace URIs, which it shouldn't?

Patch removes the wfw namespace from the export file (guessing it was copied over by mistake), although presumably there is no harm in leaving it there either.

@solarissmoke
15 years ago

Remove unused wfw namespace from export xml

#3 @wonderboymusic
12 years ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed

Marked close 2 years ago.

#4 @SergeyBiryukov
8 years ago

#47143 was marked as a duplicate.

#5 follow-up: @ramon fincken
5 years ago

  • Resolution wontfix
  • Status closed → reopened

@wonderboymusic this is still present and yes still a 404, why can't we delete this line?

#6 in reply to: ↑ 5 @SergeyBiryukov
5 years ago

  • Milestone → Awaiting Review

Replying to ramon fincken:

this is still present and yes still a 404, why can't we delete this line?

Just to clarify, is it about the instance in wp-includes/feed-rss2.php or wp-admin/includes/export.php? Removing the former would result in invalid XML, as it's used for wfw:commentRss.

Is there an actual problem solved by removing this line? As explained in comment:1, a namespace URL does not need to resolve. It may look like a URL, but it is just a unique identifier of the namespace.

Last edited 5 years ago by SergeyBiryukov (previous) (diff)

#7 @ramon fincken
5 years ago

hmm @SergeyBiryukov I guess you are right.

However .. Can't we point it to something that DOES produce some sensible output for humans?

#8 @mindctrl
16 months ago

Hi all,

It appears the patch on this ticket is invalid, as per comment 1 from 13 years ago. Does this ticket need any action or can it be closed? There hasn't been any activity in over 4 years.

#9 follow-up: @ramon fincken
16 months ago

I hope that someone could answer my question https://core.trac.wordpress.org/ticket/19885#comment:7

#10 in reply to: ↑ 9 @siliconforks
16 months ago

Replying to ramon fincken:

I hope that someone could answer my question https://core.trac.wordpress.org/ticket/19885#comment:7

The problem is that you can't simply change a namespace name (without breaking things). The ​specification requires that the namespace name be http://wellformedweb.org/CommentAPI/. Changing it would break any software that expects the namespace name to be http://wellformedweb.org/CommentAPI/.

#11 @ramon fincken
16 months ago

Nice find !

#12 @mindctrl
12 months ago

  • Resolution → wontfix
  • Status reopened → closed

Hey all, I'm following up here again. Given the findings on this ticket, I'm going to close this to help clean up Trac. Feel free to continue discussion or re-open if you think it's necessary.

#13 @sabernhardt
12 months ago

  • Milestone Awaiting Review

#14 @mukesh27
3 months ago

#65830 was marked as a duplicate.

Note: See TracTickets for help on using tickets.