Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9964

Fail to generate robots.txt and sitemap.xml files when a page is disallow from SEO

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.2.3, 4.3.0
    • None
    • None
    • None
    • 4.3 M2

      The disallow properties is store as a String but try to get it as a Boolean

      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      	at org.ametys.web.robots.RobotsSitemapGenerator._saxUrl(RobotsSitemapGenerator.java:90)
      	at org.ametys.web.robots.RobotsSitemapGenerator.generate(RobotsSitemapGenerator.java:68)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      	... 67 more
      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      	at org.ametys.web.robots.RobotsGenerator._serializePageInformation(RobotsGenerator.java:51)
      	at org.ametys.web.robots.RobotsGenerator.generate(RobotsGenerator.java:92)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      	... 67 more 

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: