You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2023/01/18 22:03:09 UTC

[flex-blazeds] branch develop updated (7db2773 -> 0016ef4)

This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/flex-blazeds.git


    from 7db2773  Merge branch 'security-updates' into develop
     new d7747d1  README: fix typo
     new 0016ef4  MessageService: fix null or empty string selector

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/flex/messaging/services/MessageService.java  | 19 +++++++++++++------
 opt/blazeds-spring-boot-starter/README.adoc           |  2 +-
 2 files changed, 14 insertions(+), 7 deletions(-)


[flex-blazeds] 02/02: MessageService: fix null or empty string selector

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/flex-blazeds.git

commit 0016ef4d49771d4e8337d8dfff6d70814c1e477b
Author: Josh Tynjala <jo...@bowlerhat.dev>
AuthorDate: Wed Jan 18 13:45:44 2023 -0800

    MessageService: fix null or empty string selector
    
    JMSSelector is removed, but no selector can still pass
---
 .../java/flex/messaging/services/MessageService.java  | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/core/src/main/java/flex/messaging/services/MessageService.java b/core/src/main/java/flex/messaging/services/MessageService.java
index c15af1d..0531270 100644
--- a/core/src/main/java/flex/messaging/services/MessageService.java
+++ b/core/src/main/java/flex/messaging/services/MessageService.java
@@ -1037,18 +1037,25 @@ public class MessageService extends AbstractService implements MessagingConstant
      * @param msg                A test message.
      */
     private void testSelector(String selectorExpression, Message msg) {
+        if (selectorExpression != null && !selectorExpression.equals(""))
+        {
+            ServiceException se = new ServiceException();
+            se.setMessage(BAD_SELECTOR, new Object[]{selectorExpression});
+            se.setRootCause(new RuntimeException("JMSSelector removed"));
+            throw se;
+        }
         /*try
         {
             JMSSelector selector = new JMSSelector(selectorExpression);
             selector.match(msg);
         }
         catch (Exception e)
-        {*/
-        ServiceException se = new ServiceException();
-        se.setMessage(BAD_SELECTOR, new Object[]{selectorExpression});
-        se.setRootCause(new RuntimeException("JMSSelector removed"));
-        throw se;
-        //}
+        {
+            ServiceException se = new ServiceException();
+            se.setMessage(BAD_SELECTOR, new Object[]{selectorExpression});
+            se.setRootCause(e);
+            throw se;
+        }*/
     }
 
     private int processMaxFrequencyHeader(CommandMessage command) {


[flex-blazeds] 01/02: README: fix typo

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/flex-blazeds.git

commit d7747d1b53166ff6c73665b706cbd3477c483754
Author: Josh Tynjala <jo...@bowlerhat.dev>
AuthorDate: Fri Jan 13 10:38:52 2023 -0800

    README: fix typo
---
 opt/blazeds-spring-boot-starter/README.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opt/blazeds-spring-boot-starter/README.adoc b/opt/blazeds-spring-boot-starter/README.adoc
index 175b6f4..fe88ae6 100644
--- a/opt/blazeds-spring-boot-starter/README.adoc
+++ b/opt/blazeds-spring-boot-starter/README.adoc
@@ -57,7 +57,7 @@ In order to do it's magic, you need to add a depdendency to the the BlazeDS Spri
 ----
 
 The services-config.xml is the core part of this, as it describes which channels the BlazeDS instance will provide.
-It has to be located in the applications classpath in `META-INF/flex/servcies-config.xml`:
+It has to be located in the applications classpath in `META-INF/flex/services-config.xml`:
 
 .src/main/resources/META-INF/flex/services-config.xml
 ----