[
https://issues.apache.org/jira/browse/MAILBOX-280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Laura Royet updated MAILBOX-280:
--------------------------------
Description:
When making a getMessageList request with a String FilterCondition containing a
white-space or an hyphen, the integration test becomes green even with wrong
ending word or one wrong word.
Examples:
When the email contains "Openpaas-Linagora"
a filtering on "Openpaassssss-Linagora"in the property "text" of
FilterCondition is matching. It is the same for the following String :
"Openpaas-Linagoraaaaaaa", "bla OpenPaas", "OpenPaas anticonstitutionn".
When the email contains "Test body"
a filtering on "Testyyy body"in the property "body" of FilterCondition is
matching. It is the same for: "Testy bodyyyyy", "Test gakayanakj", "halabdp
body".
Can be reproduced respectivly in tests
"messageWithComplicatedAttachmentShouldHaveItsEmailBodyIndexed()" in
"SetMessagesMethodTest.java" in "package
org.apache.james.jmap.methods.integration"
was:
When making a getMessageList request with a String FilterCondition containing a
white-space or an hyphen, the integration test becomes green even with wrong
ending word.
Examples:
When the email contains "Openpaas-Linagora"
a filtering on "Openpaassssss-Linagora"in the property "text" of
FilterCondition is matching. It is the same for "Openpaas-Linagoraaaaaaa"
When the email contains "Test body"
a filtering on "Testyyy body"in the property "body" of FilterCondition is
matching. It is the same for "Testy bodyyyyy"
Can be reproduced respectivly in tests
"messageWithComplicatedAttachmentShouldHaveItsEmailBodyIndexed()" and
"messageWithComplicatedAttachmentShouldNotHaveItsAttachmentIndexed()" in
"SetMessagesMethodTest.java" in "package
org.apache.james.jmap.methods.integration"
> String FilterCondition in getMessageList request should work correctly when
> including white-spaces or hyphens
> -------------------------------------------------------------------------------------------------------------
>
> Key: MAILBOX-280
> URL: https://issues.apache.org/jira/browse/MAILBOX-280
> Project: James Mailbox
> Issue Type: Bug
> Reporter: Laura Royet
>
> When making a getMessageList request with a String FilterCondition containing
> a white-space or an hyphen, the integration test becomes green even with
> wrong ending word or one wrong word.
> Examples:
> When the email contains "Openpaas-Linagora"
> a filtering on "Openpaassssss-Linagora"in the property "text" of
> FilterCondition is matching. It is the same for the following String :
> "Openpaas-Linagoraaaaaaa", "bla OpenPaas", "OpenPaas anticonstitutionn".
> When the email contains "Test body"
> a filtering on "Testyyy body"in the property "body" of FilterCondition is
> matching. It is the same for: "Testy bodyyyyy", "Test gakayanakj", "halabdp
> body".
> Can be reproduced respectivly in tests
> "messageWithComplicatedAttachmentShouldHaveItsEmailBodyIndexed()" in
> "SetMessagesMethodTest.java" in "package
> org.apache.james.jmap.methods.integration"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]