When a call is made to the node resource and the nid = 0, i.e. http://domain/endpoint/node/0.json, the index action is automatically selected. This should be handled by the 'retrieve' action in the node resource rather than 'index' by default and trigger an exception via services_error(). This patch allows for the nid to be 0, and allows it to be added to the $path array.

CommentFileSizeAuthor
services-allow-for-nid-0.patch568 bytesblisteringherb

Comments

kylebrowning’s picture

Category: bug » support

First of all, why do you have a node with nid = 0?

Second, why are you trying to get it?

marcingy’s picture

Status: Active » Closed (won't fix)

Nid 0 can never exist closing this.