
| Key: |
JAMES-144
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Rich
|
| Votes: |
1
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Operating System: Other
Platform: All
Operating System: Other
Platform: All
|
|
| Bugzilla Id: |
25489
|
| Resolution Date: |
13/Apr/04 09:32 PM
|
|
When, for instance,
LIST 4
is given as a command when the mailbox contains only two messages, the response
should be
-ERR Message (4) does not exist.
But instead it exits, breaking the connection ungracefully.
As I see it this is because the code catches ArrayIndexOutOfBoundsException.
But ArrayList.get() throws IndexOutOfBoundsException.
It appears that I have fixed this, for the most part, in my working copy by
changing ArrayIndexOutOfBoundsException to IndexOutOfBoundsException in the
five places where it occurs in POP3Handler.
Another problem, not as bad, is shown by the following sequence:
retr 0
-ERR Message (0) deleted.
I think the correct response should be:
-ERR Message (0) does not exist.
This would be a little more work to fix, and the problem is not as bad as the
former.
|
|
Description
|
When, for instance,
LIST 4
is given as a command when the mailbox contains only two messages, the response
should be
-ERR Message (4) does not exist.
But instead it exits, breaking the connection ungracefully.
As I see it this is because the code catches ArrayIndexOutOfBoundsException.
But ArrayList.get() throws IndexOutOfBoundsException.
It appears that I have fixed this, for the most part, in my working copy by
changing ArrayIndexOutOfBoundsException to IndexOutOfBoundsException in the
five places where it occurs in POP3Handler.
Another problem, not as bad, is shown by the following sequence:
retr 0
-ERR Message (0) deleted.
I think the correct response should be:
-ERR Message (0) does not exist.
This would be a little more work to fix, and the problem is not as bad as the
former. |
Show » |
|