+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / SF 3.2 bug in blog "Pingback"

SF 3.2 bug in blog "Pingback"

4 posts, 0 answered
  1. Nigel
    Nigel avatar
    38 posts
    Registered:
    01 Dec 2004
    18 Aug 2008
    Link to this post
    Hi

    If an HTML encoded ampersand
    & 
    is used in a post, an error message is thrown. XML parsing in Telerik.Cms.Engine.Trackback.TrackbackHelper.PingBackContent seems to be the culprit.


  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    20 Aug 2008
    Link to this post
    Hello Nigel,

    Can you please give us the steps to reproduce since we were not able to reprlicate it based on the information you have provided us with.

    Greetings,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Nigel
    Nigel avatar
    38 posts
    Registered:
    01 Dec 2004
    20 Aug 2008
    Link to this post
    Hello Ivan

    There isn't a lot more information to give! On multiple platforms (FireFox, IE, etc.), affecting both development (Vista x64, IIS7) and production (Win 2003 Server, IIS 6) sites, if you type an & in a blog post, it throws an error.

    Here's the full error message
     An error occurred while parsing EntityName. Line 1, position 29. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
     
    Exception Details: System.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 29. 
     
    Source Error: 
     
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
     
    Stack Trace: 
     
    [XmlException: An error occurred while parsing EntityName. Line 1, position 29.] 
       System.Xml.XmlTextReaderImpl.Throw(Exception e) +87 
       System.Xml.XmlTextReaderImpl.Throw(String res, Int32 lineNo, Int32 linePos) +113 
       System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos) +238 
       System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars) +615 
       System.Xml.XmlTextReaderImpl.FinishPartialValue() +62 
       System.Xml.XmlTextReaderImpl.get_Value() +21 
       System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +342 
       System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +50 
       System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +162 
       System.Xml.XmlDocument.Load(XmlReader reader) +96 
       Telerik.Cms.Engine.Trackback.TrackbackHelper.PingBackContent(String data, String title, String url, String excerpt, String siteName) +114 
       Telerik.Blogs.WebControls.Admin.ControlPanel.Pingback(IContent content) +602 
       Telerik.Cms.Engine.WebControls.Admin.ControlPanel.button_Command(Object sender, CommandEventArgs e) +2286 
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +105 
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +163 
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174 
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 
     

    I don't really know what other information to give you. Perhaps the radeditor control definition in SiteFinity/Admin/ControlTemplates/Blogs/ControlPanelInsert.aspx?

    <telerik:RadEditor  
        runat="server"  
        ID="contentEditor"  
        ContentAreaCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css" 
        ToolsFile="~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml" 
        EnableEmbeddedSkins="False" Skin="Sitefinity"  
        NewLineBr="False" 
        StripFormattingOnPaste="AllExceptNewLines" 
        Width="95%">  
        <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" /> 
        <MediaManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
        <FlashManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
        <DocumentManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
        <CssFiles> 
            <telerik:EditorCssFile Value="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css" /> 
        </CssFiles> 
    </telerik:RadEditor> 

    The site affected is running SiteFinity 3.2 SP2 (without Hotfix 1616).

    Let me know if there is anything else in particular you would like to know.


  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Sep 2008
    Link to this post
    Hello Nigel,

    We apologize for the late response.
    We tried to reproduce the problem but with no success.

    There are some implementations in our latest release that handle the invalid markup more properly. Could you please check whether you can replicate the same behavior using Sitefinity 3.2 SP2 Hotfix 1616 on your end?

    We are sorry we could not help you much at this point.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered