Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-08 Thread Nuwan Wimalasekara
Hi

I know this is not a major issue. In the initial mail, I have mentioned
that removing a jar file from a patch directory is not a good practise and
there is a workaround too. But mistakenly doing this will make confusion in
patch applying process. User thinks the jar is reverted. but actually it is
not. Created a JIRA to track there is such a behaviour and we can
prioritise whether we need to fix it or not.

Thanks,
Nuwanw

On Wed, Jun 8, 2016 at 1:35 PM, Kishanthan Thangarajah 
wrote:

> I don't think this a major issue to fix. Normally if you apply a patch,
> you don't partially remove some jars from the patch directory as if you are
> trying to update a patch. Either you remove that patch completely or apply
> a new patch. IMO there is no concept of updating a patch rather you update
> your system with a patch.
>
> On Wed, Jun 8, 2016 at 6:55 AM, Niranjan Karunanandham 
> wrote:
>
>> 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 
>> 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 
>>> 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  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 
> 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 
>> patch.
>>
>> 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
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Nuwan Wimalasekara
Associate Technical Lead
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-08 Thread Kishanthan Thangarajah
I don't think this a major issue to fix. Normally if you apply a patch, you
don't partially remove some jars from the patch directory as if you are
trying to update a patch. Either you remove that patch completely or apply
a new patch. IMO there is no concept of updating a patch rather you update
your system with a patch.

On Wed, Jun 8, 2016 at 6:55 AM, Niranjan Karunanandham 
wrote:

> 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 
> 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 
>> 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  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 
 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 
> patch.
>
> 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
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-07 Thread Niranjan Karunanandham
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  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 
> 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  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 
>>> 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 
 patch.

 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
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-07 Thread Nuwan Wimalasekara
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  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  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 
>> 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 patch.
>>>
>>> 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-01 Thread Nuwan Wimalasekara
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  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 
> 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 patch.
>>
>> 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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-01 Thread Manoj Kumara
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  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 patch.
>
> 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
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-01 Thread Nuwan Wimalasekara
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 patch.

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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev