Hi Sadeep,

At the moment the populator takes all the resources and add them to the
registry as a gadget media-type. Will fix it to filter only the xml files.
However the populator code will be deprecated in the future.

Regards,
/Nuwan

On Mon, Feb 28, 2011 at 11:52 AM, Sadeep Jayasumana <sad...@wso2.com> wrote:

>
>
> On Mon, Feb 28, 2011 at 11:45 AM, Sadeep Jayasumana <sad...@wso2.com>wrote:
>
>>
>>
>> On Mon, Feb 28, 2011 at 11:17 AM, Sumedha Rubasinghe <sume...@wso2.com>wrote:
>>
>>>
>>>
>>> On Mon, Feb 28, 2011 at 10:57 AM, Sadeep Jayasumana <sad...@wso2.com>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?
>>> :)
>>>
>>
> Problem is there in [1].
>
>
>>
>>> 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 - sad...@wso2.com
>>>> Mobile - +94 77 22 66 507
>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> Carbon-dev@wso2.org
>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>
>>
>> --
>> Sadeep Jayasumana
>>
>> Software Engineer
>> WSO2 Inc.
>> Email - sad...@wso2.com
>> Mobile - +94 77 22 66 507
>>
>
> [1]
> https://svn.wso2.org/repos/wso2/trunk/carbon/components/dashboard/org.wso2.carbon.dashboard.dashboardpopulator/src/main/java/org/wso2/carbon/dashboard/dashboardpopulator/GadgetPopulator.java
>
>
> --
> Sadeep Jayasumana
>
> Software Engineer
> WSO2 Inc.
> Email - sad...@wso2.com
> Mobile - +94 77 22 66 507
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Thanks & Regards,

Nuwan Bandara
Software Engineer
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware

http://www.nuwanbando.com

<http://www.nuwanbando.com/>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to