Spring Data Commons
  1. Spring Data Commons
  2. DATACMNS-227

ResourceReaderRepositoryPopulatorBeanDefinitionParser should parse location attribute not locations

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5 Final
    • Component/s: Repositories
    • Labels:
      None

      Description

      doParse references locations, but the XSD specifies the attribute name location.

      Either doParse(…) should read the following or the XSD needs changing:

      protected void doParse(Element element, BeanDefinitionBuilder builder) {
      
      	String localName = element.getLocalName();
      	builder.addPropertyValue("resources", element.getAttribute("location"));
      	
      	…
      }
      

        Activity

        Hide
        Doug Beasley added a comment -

        I've verified that creating http://www.springframework.org/schema/data/repository/spring-repository-1.5.xsd and changing the attribute "location" to "locations" for the populator element corrects the problem.

        48c48
        < 		<xsd:attribute name="location" type="xsd:string" use="required">
        ---
        > 		<xsd:attribute name="locations" type="xsd:string" use="required">
        
        Show
        Doug Beasley added a comment - I've verified that creating http://www.springframework.org/schema/data/repository/spring-repository-1.5.xsd and changing the attribute "location" to "locations" for the populator element corrects the problem. 48c48 < <xsd:attribute name= "location" type= "xsd:string" use= "required" > --- > <xsd:attribute name= "locations" type= "xsd:string" use= "required" >

          People

          • Assignee:
            Oliver Gierke
            Reporter:
            Neale Upstone
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: