Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-14111

convertToFile fails because of ArrayIndexOutOfBoundsException

    XMLWordPrintable

    Details

      Description

      INFO: ** exception converting : /attachment/a00af98a-f796-4780-00dd-df428f9c4570/Assignments/a600ddc4-ad52-4e81-803d-842857796dde/you view point.doc : (2008-07-29 19:43:07,372 main_org.sakaiproject.content.impl.DbContentService)
      java.lang.ArrayIndexOutOfBoundsException: 5
      at org.sakaiproject.content.impl.DbContentService$1.readSqlResultRecord(DbContentService.java:2636)
      at org.sakaiproject.db.impl.BasicSqlService.dbRead(BasicSqlService.java:571)
      at org.sakaiproject.db.impl.BasicSqlService.dbRead(BasicSqlService.java:469)
      at org.sakaiproject.content.impl.DbContentService.convertToFile(DbContentService.java:2530)
      at org.sakaiproject.content.impl.DbContentService.init(DbContentService.java:393)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)

      patch:

      Index: src/java/org/sakaiproject/content/impl/DbContentService.java
      ===================================================================
      — src/java/org/sakaiproject/content/impl/DbContentService.java (revision 49671)
      +++ src/java/org/sakaiproject/content/impl/DbContentService.java (working copy)
      @@ -2627,7 +2627,7 @@

      // update the record
      sql = contentServiceSql.getUpdateContentResource3Sql();

      • fields = new Object[5];
        + fields = new Object[6];
        fields[0] = edit.m_filePath;
        fields[1] = xml;
        fields[2] = context;

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  jimeng Jim Eng (Inactive)
                  Reporter:
                  ottenhoff Sam Ottenhoff
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration