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

News opens with the wrong default sakaiproject url and does not honor the local default properties and

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 10.7
    • Fix Version/s: 11.2, 12.0
    • Component/s: News (RSS)
    • Labels:
      None
    • 11 status:
      Resolved

      Description

      The local properties setting for the News Feed (news.feedURL= ) seems to be ignored in Sakai 10.7 and the nightly 10.x server (https://qa10-mysql.nightly.sakaiproject.org/). When users add a News tool into their site, the current default News feed (http://sakaiproject.org/feed) is displayed automatically but it is the wrong url. I think that is because the News default is hard-coded with the wrong url in site-manage/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
      728 private final static String NEWS_TOOL_CHANNEL_CONFIG_VALUE = "http://sakaiproject.org/feed";

      7234 // read the defaul attribute setting from configuration
      7235 ArrayList<String> defaultValues =new ArrayList<String>();
      7236 String defaultValueConfig = ServerConfigurationService.getString(CONFIG_TOOL_ATTRIBUTE_DEFAULT + toolId);
      7237 if ( defaultValueConfig != null && defaultValueConfig.length() > 0)
      7238

      { 7239 defaultValues = new ArrayList(Arrays.asList(defaultValueConfig.split(","))); 7240 }

      7241 else
      7242 {
      7243 // otherwise, treat News tool and Web Content tool differently
      7244 if (toolId.equals(NEWS_TOOL_ID))
      7245

      { 7246 // default value 7247 defaultValues.add(NEWS_TOOL_CHANNEL_CONFIG_VALUE); 7248 }

      7249 else if (toolId.equals(WEB_CONTENT_TOOL_ID))
      7250

      { 7251 // default value 7252 defaultValues.add(WEB_CONTENT_TOOL_SOURCE_CONFIG_VALUE); 7253 }

      7254 }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  euksa99 Sanghyun Jeon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code