You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Marcos Macedo (JIRA)" <ji...@apache.org> on 2009/04/22 16:56:48 UTC
[jira] Created: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Infinite Loop when deleting an alias with suffix size > 1
---------------------------------------------------------
Key: DIRSERVER-1352
URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
Project: Directory ApacheDS
Issue Type: Bug
Components: ldap
Affects Versions: 1.5.4
Environment: windows xp
Reporter: Marcos Macedo
Priority: Critical
if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann resolved DIRSERVER-1352.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.5
Assignee: Stefan Seelmann
Fixed.
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Assignee: Stefan Seelmann
> Priority: Critical
> Fix For: 1.5.5
>
> Attachments: AliasDeleteIT.java, DIRSERVER-1352.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny closed DIRSERVER-1352.
----------------------------------------
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Assignee: Stefan Seelmann
> Priority: Critical
> Fix For: 1.5.5
>
> Attachments: AliasDeleteIT.java, DIRSERVER-1352.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702754#action_12702754 ]
Stefan Seelmann commented on DIRSERVER-1352:
--------------------------------------------
This is a duplicate of DIRSERVER-1157.
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Priority: Critical
> Attachments: AliasDeleteIT.java, DIRSERVER-1352.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Marcos Macedo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcos Macedo updated DIRSERVER-1352:
-------------------------------------
Attachment: AliasDeleteIT.java
Hi, this test case is only a draft, it is not usable at it is for the issue 1352 reported :
- first the suffix in the ldif section must be with size greater than 1, i use in the test a suffix with size = 1, eg ou=system, but it needs to be greater than that, eg, dc=example,dc=com, but i dunno how to work with dc=example.com,dc=com
- the test itself must have a timeout to determine that the test case is hanging forever but i dont know how to do that
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Priority: Critical
> Attachments: AliasDeleteIT.java, DIRSERVER-1352.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Marcos Macedo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcos Macedo updated DIRSERVER-1352:
-------------------------------------
Attachment: DIRSERVER-1352.patch
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Priority: Critical
> Attachments: DIRSERVER-1352.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702814#action_12702814 ]
Stefan Seelmann commented on DIRSERVER-1352:
--------------------------------------------
Hi Marcos,
thanks for the patch, I applied it to trunk.
Regarding the test: You need to add a new partition with another suffix. By default the test class starts with the system partition only. But you could define your own factory to add additional partitions. I added the factory and two tests to the existing AddIT, see http://svn.apache.org/viewvc?view=rev&revision=768609.
Stefan
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Priority: Critical
> Attachments: AliasDeleteIT.java, DIRSERVER-1352.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSERVER-1352) Infinite Loop when deleting an
alias with suffix size > 1
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702139#action_12702139 ]
Stefan Seelmann commented on DIRSERVER-1352:
--------------------------------------------
Thanks for the report and the precise description. Maybe you could provide a testcase and a patch?
> Infinite Loop when deleting an alias with suffix size > 1
> ---------------------------------------------------------
>
> Key: DIRSERVER-1352
> URL: https://issues.apache.org/jira/browse/DIRSERVER-1352
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 1.5.4
> Environment: windows xp
> Reporter: Marcos Macedo
> Priority: Critical
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> if you have a domain with a suffix size greather than 1, eg. dc=example,dc=com, and try to remove an alias, the operation will hang forever.
> I have traced the problem and figure that the method dropAliasIndices from JdbmStore.java have a while loop that drives the operation to hang forever if your suffix is greater than 1. Thats because the getPrefix is used with parameter 1 instead of ancestorDn.size() - 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.