Maybe as a workaround, we can detect when comments are inserted (when the
config is saved through the UI) and ask the user to not to insert comments
and use the description tag. That way, the risk of losing parts of the
synapse config can be avoided.

WDYT?

On Sun, Jan 23, 2011 at 12:14 PM, Kasun Indrasiri <[email protected]> wrote:

>
>
> On Sun, Jan 23, 2011 at 12:00 PM, Senaka Fernando <[email protected]> wrote:
>
>>
>>
>> On Sun, Jan 23, 2011 at 11:15 AM, Tharindu Mathew <[email protected]>wrote:
>>
>>> I commented out some lines from a synapse config and saved it. This
>>> resulted in those lines being wiped out from the config!!
>>>
>>
>>> Is this a known issue?
>>>
>>
>> I think yes. IIRC, you can't have XML-style comments in the synapse.xml.
>> But, given your explanation, IMHO, its a fairly-big usability issue. IMO,
>> commenting out and testing is a common practice that most developers are
>> used to.
>>
> IMO, the ideal solution is to preserve comments as this is a very valid use
> case. However, AFAIR there were some complexity involved in doing that.
>
> Please refer the thread about this on synapse-dev[1].
>
> [1] http://www.mail-archive.com/[email protected]/msg06544.html
>
>
>> Its worth discussing this on synapse AT apache.org.
>>
>> Thanks,
>> Senaka.
>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> https://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://www.linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Kasun Indrasiri
> Senior Software Engineer
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 71 536 4128
> Blog : http://kasunpanorama.blogspot.com/
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Regards,

Tharindu Mathew

Software Engineer,
WSO2 Inc.,
http://wso2.com
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to