Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-393

contentType is set twice with conflicting values in raw-schema.jsp

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • Admin UI
    • None

    Description

      Content type is set twice in raw-schema.jsp with conflicting values, causing a compiling error in Resin:

      <%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
      <%--
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements. See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License. You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      --%>
      <%@ page import="org.apache.solr.core.SolrCore,
      org.apache.solr.schema.IndexSchema"%>
      <%@ page import="java.io.InputStreamReader"%>
      <%@ page import="java.io.Reader"%>
      <%@ page contentType="text/plain;charset=UTF-8" language="java" %>

      Attachments

        1. solr-393.patch
          0.6 kB
          William Au

        Activity

          billa William Au added a comment -

          The attached patch remove duplicates contentType settings, keeping the last one:

          <%@ page contentType="text/plain;charset=UTF-8" language="java" %>

          billa William Au added a comment - The attached patch remove duplicates contentType settings, keeping the last one: <%@ page contentType="text/plain;charset=UTF-8" language="java" %>
          billa William Au added a comment -

          patch committed. Also updated CHANGES.txt.

          billa William Au added a comment - patch committed. Also updated CHANGES.txt.

          This bug was modified as part of a bulk update using the criteria...

          • Marked "Resolved" and "Fixed"
          • Had no "Fix Version" versions
          • Was listed in the CHANGES.txt for 1.3 as of today 2008-03-15

          The Fix Version for all 29 issues found was set to 1.3, email notification was suppressed to prevent excessive email.

          For a list of all the issues modified, search jira comments for this (hopefully) unique string: batch20070315hossman1

          hossman Chris M. Hostetter added a comment - This bug was modified as part of a bulk update using the criteria... Marked "Resolved" and "Fixed" Had no "Fix Version" versions Was listed in the CHANGES.txt for 1.3 as of today 2008-03-15 The Fix Version for all 29 issues found was set to 1.3, email notification was suppressed to prevent excessive email. For a list of all the issues modified, search jira comments for this (hopefully) unique string: batch20070315hossman1

          People

            Unassigned Unassigned
            billa William Au
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: