filter cannot be converted to lowercase (#1899)

This commit is contained in:
Athou
2025-09-22 03:47:06 +02:00
parent 8386c2889f
commit 7f53531489
2 changed files with 3 additions and 1 deletions

View File

@@ -431,7 +431,7 @@ public class FeedREST {
User user = authenticationContext.getCurrentUser();
FeedSubscription subscription = feedSubscriptionDAO.findById(user, req.getId());
subscription.setFilter(StringUtils.lowerCase(req.getFilter()));
subscription.setFilter(req.getFilter());
if (StringUtils.isNotBlank(req.getName())) {
subscription.setTitle(req.getName());

View File

@@ -213,10 +213,12 @@ class FeedIT extends BaseIT {
req.setName("new name");
req.setCategoryId(subscription.getCategoryId());
req.setPosition(1);
req.setFilter("url.endsWith('commafeed')");
RestAssured.given().body(req).contentType(ContentType.JSON).post("rest/feed/modify").then().statusCode(HttpStatus.SC_OK);
subscription = getSubscription(subscriptionId);
Assertions.assertEquals("new name", subscription.getName());
Assertions.assertEquals("url.endsWith('commafeed')", subscription.getFilter());
}
}