Uploaded image for project: 'Ergo'
  1. Ergo
  2. ERGO-493

Defining field name in DefineFeatureType.java makes an error when the new name is identical to old name

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • IN-COREv1-April Sprint 1, IN-COREv1-April Sprint 2

      DefineFeatureType.java's getNextFieldName makes an error when the new name and old name is the identical. It tries to change the old name to new name but if it is in the case of objectid_1 (the length of the word before underscore is eight and the number after underscore is one), it makes an infinite loop eventually, making an error.

      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)
      at edu.illinois.ncsa.ergo.core.analysis.ogrescript.tasks.core.DefineFeatureType.getNextFieldName(DefineFeatureType.java:242)

              ywkim Yong Wook Kim
              ywkim Yong Wook Kim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 3 hours Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 3 hours Remaining Estimate - 1 hour
                  3h