Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-297

[FIX] a bug in method buildNormalContext in Class CustomizeSetAction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.4b4
    • None
    • Customizer
    • None
    • Operating System: Linux
      Platform: PC
    • 19589

    Description

      I think there is a little bug between line 137-150. When template terminates
      whith a ".vm" extension in the xreg files. we should better have the line
      140 : StringBuffer buffer = new StringBuffer(template);
      after the if block like that :

      if (template != null)
      {
      int idx = template.lastIndexOf(".");
      // StringBuffer buffer = new StringBuffer(template);
      if (idx > 0)

      { template = template.substring(0, idx); }

      // new position
      StringBuffer buffer = new StringBuffer(template);
      buffer.append("-").append(mode).append(".vm");

      template = TemplateLocator.locatePortletTemplate(rundata,
      buffer.toString());
      context.put("feature", template);

      }

      and I think it's alway the same for the others sources

      Attachments

        Activity

          People

            raphael@apache.org Raphaƫl Luta
            clercgjp@club-internet.fr Georges Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: