Closed p01 closed 12 years ago
That's right. I have not seen instances of ResourceInfo without a URL. OTOH the ListDocuments command of the document-manager has returned documents without a URL.
Is it not the resources that get mocked in resource_service.js:479?
The url
and callback
of cls.ResourceRequest are not optional.
cls.ResourceRequest requests the resource for a given url and calls the callback when the payload comes back.
Also, checking the callstack in DFL-3706, shows it threw when called from window.templates.resource_tree.document(...)
Okay, I see. Looks fine then.
Have you checked how a resource can not have a url? We should normally instantiate a new resource on urlload, that should have the URL already.