On Mon, Feb 28, 2011 at 11:17 AM, Sumedha Rubasinghe <[email protected]>wrote:
> > > On Mon, Feb 28, 2011 at 10:57 AM, Sadeep Jayasumana <[email protected]>wrote: > >> Ex: >> Resouce path: /_system/config/repository/dashboards/gadgets/images/bar.jpg >> Media type: application/vnd.wso2-gadget+xml >> >> Resource path: >> /_system/config/repository/dashboards/gadgets/images/gauge.jpg >> Media type: application/vnd.wso2-gadget+xml >> >> How can *.jpg have "application/vnd.wso2-gadget+xml" as the media type? > :) > > BTW Sadeep, I think we need to solve this from G-Reg PoV. There is a high > chance for any random user to upload content with incorrect media type. > Indexing should not fail b'cos of that. Logic should be, if we cannot index > one resource, move to other. > Yes, that's the logic we have. Indexing doest not fail, it just logs an error message if it cannot index a resource with an indexable media type. And then it moves on :) > /sumedha > > >> >> +xml part in the media type suggests that the resource has XML content. >> This leads to exceptions in GReg indexing. >> >> >> -- >> Sadeep Jayasumana >> >> Software Engineer >> WSO2 Inc. >> Email - [email protected] >> Mobile - +94 77 22 66 507 >> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > -- Sadeep Jayasumana Software Engineer WSO2 Inc. Email - [email protected] Mobile - +94 77 22 66 507
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
