Hi Sumedha,

Thanks for the JIRA, lost site of this one, :). Well, I don't think its
hard, since we can simply edit the media type and do a put() call. That
should do AFAIU. But, the effects of handlers etc, is an issue. If some one
changes media type, he/she is doing it deliberately right, so I believe
that the person will be aware of such effects, and we should not treat this
in a special way. Cos, we don't know what handlers have been written by
users, anyway. May be a warning message (on the GUI - before changing the
type), can help.

Thanks,
Senaka.

On Tue, Nov 8, 2011 at 1:31 AM, Sumedha Rubasinghe <[email protected]> wrote:

> This is a missing feature AFAIK. And i think i myself created an issue
> for this.  we simply haven't dealt with logic of figuring out the old
> media type, undoing the effects by previous handlers associated
> withit, and then applying the new media type.
> However can lead to bit of a painful logic as well.
> /sumedha
>
> On 11/4/11, Samisa Abeysinghe <[email protected]> wrote:
> > May be I have asked this question in the past too - but why $subject
> >
> > The use case is, When I load a gadget with an xml file using resource
> > browser, if I forget to change the content type form application/xml to
> > application/vnd.wso2-gadget+xml
> >
> > It would not treat that as a gadget. So I would like to edit the content
> > type and fix it.
> >
> > Thanks,
> > Samisa...
> >
> > Samisa Abeysinghe
> > VP Engineering
> > WSO2 Inc.
> > http://wso2.com
> > http://wso2.org
> >
>
> --
> Sent from my mobile device
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>



-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to