On Wed, Nov 7, 2012 at 10:24 AM, Sriragu Arudsothy <[email protected]> wrote:
> Hai All, > > It does not a matter to change from application/xml to other > valid human/MIME mediatypes. Code will do the necessary changes. But I > wanted to know whether Do we need to give an error warning message to the > user who does it or not? > > Referring to Senaka : This is not a valid convention if it is outside the > _system/governance. That is right. Still I m waiting to his final opinion. > > Referring to Eranda : Changing the generic xml file (application/xml- > media type) to WSDL is not relevant or kind of invalid scenario/ not > meaningful. This is what Shelan was said yesterday. But of course it can > be like what you said. Eventhough if such have to be, can be done within > _system/governance directory. It is like user first uploads a generic xml > file, then add more relevant information related to Policy and changes to > policy mediatype. [changing the mediatype must be relevant to context, if > some thing goes wrong with the user its upto him/her] > > All my concern is to leave it as it is OR give a error message to the user? Perhaps we can popup a message for now saying this might impact the behavior of some features. > How does a user get to know that the governance artifacts must be uploaded > within _system/governance directory ? Did it mention in the documentation? > We had a chat recently whether to use the media type only to identify the artifact rather than their exact location. But if we going to change this it should be done with a proper plan as their might be more changes in the components related to this. Here there can be couple of options: - All artifacts based on media type than their stored location - Specific locations for specific types such as Policy, Schema etc... (similar to the current behavior) - Have some specific location for specialized set of files and rest should be based on media type where ever they stored. Regards, Vijitha. > > thanks > Ragu > > > On Wed, Nov 7, 2012 at 9:46 AM, Eranda Sooriyabandara <[email protected]>wrote: > >> Hi Ragu, >> >> There can be a solution to prompt an error >>> message(CarbonUImessage) to the user if he/she changes the mediatype from >>> application/xml to Policy and click the save button on the metadata panel >>> when the source path does not contain the "_system/governance" string. >>> >>> I did this yesterday. I do have to do some improvement anyway. but it >>> works. >>> >>> But G-reg guys were telling me that this is not a real bug. Since it is >>> a governance artifact it must be governed within governance directory. >>> >>> What shall I do? >>> >> >> Its not only about policies but wsdls/schemas/etc are xml files where >> they also need to be change their mediatype application/xml to >> application/(wsdl/schema)+xml. Anyway to me the solution is kind of >> over-engineering because of what Senaka mentioned in his mail. >> >> thanks >> Eranda >> * >> * >> >> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: [email protected] Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
