Hi Nuwan,

As per the logic in [1], when the jar is removed, the patches are not
updated. But as mentioned by you, as a solution we can revert the jar by
removing the patch directory and restarting the server.

[1] -
https://github.com/wso2/carbon-kernel/blob/v4.4.5/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/extensions/PatchInstaller.java

Regards,
Nira

On Tue, Jun 7, 2016 at 7:22 PM, Nuwan Wimalasekara <[email protected]> wrote:

> Hi,
>
> Seems this is a bug. reported a JIRA[1] to track the issue further.
>
> [1] https://wso2.org/jira/browse/CARBON-15939
>
> Thanks,
> Nuwanw
>
> On Wed, Jun 1, 2016 at 12:21 PM, Nuwan Wimalasekara <[email protected]>
> wrote:
>
>> Hi Manoj,
>>
>> Yes. Even if the jar is removed, plugin directory has the same md5 value
>> of removed jar. means It is not reverted.
>>
>> To revert the jar, we have to remove the patch directory and restart the
>> server.
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara <[email protected]> wrote:
>>
>>> During patch application it validate the md5sum's of the jars as well.
>>> Can you please verify the removed jar has a different md5 value from what's
>>> there in the server ?
>>>
>>> *Manoj Kumara*
>>> WSO2 Inc. *| **lean. enterprise. middleware.*
>>> *Mobile:* +94 713 448188
>>>
>>> On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara <[email protected]>
>>> wrote:
>>>
>>>> Hi Carbon Team,
>>>>
>>>> I have observed $subject when I try to remove a jar file from patch
>>>> directory. I know removing a jar file from patch directory is not a good
>>>> practise when applying patches. But it may happen and then the behaviour is
>>>> confusing. However if we update the a jar file inside a patch , it will
>>>> reflect and update the plugins directory and works as expected.
>>>>
>>>> To reproduce the issue, we can apply a patch having two jar file and
>>>> restart the server. Then it will apply the patch. after that, remove one of
>>>> jar file in the patch directory and restart the server. The it will not
>>>> detect as a patch change and will not revert the removed jar from 
>>>> patch0000.
>>>>
>>>> Is this a limitation in patch applying process or bug?
>>>>
>>>> Thanks,
>>>> Nuwanw
>>>>
>>>> --
>>>> Nuwan Wimalasekara
>>>> Senior Software Engineer - Test Automation
>>>> WSO2, Inc.: http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> phone: +94 71 668 4620
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Associate Technical Lead
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to