You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2022/11/15 18:38:55 UTC

[GitHub] [cxf] neseleznev commented on a diff in pull request #978: Fix Content ID and attachment ID equality check

neseleznev commented on code in PR #978:
URL: https://github.com/apache/cxf/pull/978#discussion_r1023140586


##########
core/src/main/java/org/apache/cxf/attachment/LazyDataSource.java:
##########
@@ -47,7 +50,13 @@ public LazyDataSource(String id, Collection<Attachment> attachments) {
     private synchronized void load() {
         if (dataSource == null) {
             for (Attachment a : attachments) {
-                if (a.getId().equals(id)) {
+                String attachmentId = a.getId();

Review Comment:
   It seems that this change https://github.com/apache/cxf/pull/1028 should fix it as well. Given the `attachmentId` which is valid domain, it should have no URL encode/decode issue in equality checks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cxf.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org