Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2253

Incorrect handling of datasource JNDI name

XMLWordPrintable

      At server/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCEntityMetaData.java, line 1506, there is a bogus semi-colon that renders the if instruction a no-op.

      Patch follows.

      []'s
      R. Lemos

      ------------------------------------- cut-here -------------------------------------
      — server/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCEntityMetaData.java 2005-09-13 09:53:20.303470656 -0300
      +++ server/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCEntityMetaData.java 2005-09-13 09:53:25.579668552 -0300
      @@ -1503,7 +1503,7 @@
      if(dataSourceName.startsWith("java:"))
      {
      datasource = dataSourceName.substring("java:".length());

      • if(datasource.startsWith("/"));
        + if(datasource.startsWith("/")) { datasource = datasource.substring(1); }

              olubyans@redhat.com Alexey Loubyansky
              rslemos_jira R. Lemos (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: