none
UAG Rewrite url for rss RRS feed

  • Question

  • Hi,

    I am having a problem in UAG trying to view rss feeds on SP2010. Going through UAG I get Feed code error, when I go to the SP server directly it works. I did view source and I see the following going through the UAG server:

    <title>Connect: Contact_SP_Team</Title><script language="JavaScript" src="/InternalSite/scripts/CacheClean.js"></script><script language="JavaScript" src="/InternalSite/logoffParams.asp?site_name=sharepoint&secure=1"></script>

     

    Going direct I see:

    <title>Connect: Contact_SP_Team</title>

     

    The /title is getting changed to /Title and failing. Any insight would be great.

    Wednesday, September 29, 2010 5:02 PM

Answers

All replies

  • I am currently investigating a similar scenario with a customer. The changes are being applied by the AppWrap process which is used to amend published resource behaviour on the fly. More info here: http://blogs.technet.com/b/edgeaccessblog/archive/2009/11/17/appwrap-in-uag-what-s-new.aspx

    The AppWrap code can be amended if necessary, but you then lose the security enhancements of UAG in order to achieve this...

    Cheers

    JJ


    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    • Marked as answer by T roy Thursday, September 30, 2010 1:47 PM
    Wednesday, September 29, 2010 10:41 PM
    Moderator
  • Thanks Jason. I changed /Title to /title and sharepoint&secure=1 to sharepoint&amp;secure=1 Now all rss feeds and Excel charts are working!!

     

    T roy

    • Marked as answer by T roy Thursday, September 30, 2010 1:48 PM
    Thursday, September 30, 2010 1:47 PM
  • The following approach (thanks Ben!) should also work:

    1.       In the UAG console, open the Advanced Trunk Configuration.

    2.       Switch to the Portal Tab

    3.       Click on “Do not parse the response bodies to these requests:” (it’s the 2<sup>nd</sup> item on the left)

    4.       Click Add on the top.

    5.       Type in the internal name of the SharePoint server (same one used in the SPS application’s properties). If the server is an FQDN, then type a slash before the dots. For example: sps\.mitre\.org

    6.       Click Add at the bottom (for adding a URL)

    7.       Type: “.*listfeed.*” (without the quotes – dot, star, listfeed, dot, star)

    8.       Activate your configuration and test.

    Cheers

    JJ


    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    Friday, October 1, 2010 12:12 AM
    Moderator
  • Thanks Jason. I changed /Title to /title and sharepoint&secure=1 to sharepoint&amp;secure=1 Now all rss feeds and Excel charts are working!!

     

    T roy


    Can you possibly share your updated AppWrap code for others to benefit?
    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    Friday, October 1, 2010 12:14 AM
    Moderator
  • Sure.

    Open \Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WizardDefaults\AppWrapTemplates\HTTPS_WhlFiltAppWrap_ForPortal.xml

    Search for:
     <!-- for sharepoint 2010 conditional appwrap hide log off   -->
    Change the following (base 64 encoded)

    From:

    PC9UaXRsZT48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0IiBzcmM9IldobE93blVSTHNjcmlw
    dHMvQ2FjaGVDbGVhbi5qcyI+PC9zY3JpcHQ+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCIg
    c3JjPSJXaGxPd25VUkxsb2dvZmZQYXJhbXMuYXNwP3NpdGVfbmFtZT1XaGxTaXRlTmFtZSZzZWN1
    cmU9V2hsU2VjdXJlIj48L3NjcmlwdD4NCiAgICAgICAgICA8c2NyaXB0IGxhbmd1YWdlPSJKYXZh
    U2NyaXB0IiBzcmM9IldobE93blVSTHNjcmlwdHMvbG9nb2ZmLmpzIj48L3NjcmlwdD4=

    To:

    PC90aXRsZT48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0IiBzcmM9IldobE93blVSTHNjcmlw
    dHMvQ2FjaGVDbGVhbi5qcyI+PC9zY3JpcHQ+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCIg
    c3JjPSJXaGxPd25VUkxsb2dvZmZQYXJhbXMuYXNwP3NpdGVfbmFtZT1XaGxTaXRlTmFtZSZhbXA7
    c2VjdXJlPVdobFNlY3VyZSI+PC9zY3JpcHQ+DQogICAgICAgICAgPHNjcmlwdCBsYW5ndWFnZT0i
    SmF2YVNjcmlwdCIgc3JjPSJXaGxPd25VUkxzY3JpcHRzL2xvZ29mZi5qcyI+PC9zY3JpcHQ+
    Tuesday, October 5, 2010 12:39 PM
  • Sure.

    Open \Program Files\Microsoft Forefront Unified Access Gateway\von\Conf\WizardDefaults\AppWrapTemplates\HTTPS_WhlFiltAppWrap_ForPortal.xml

    Search for:
     <!-- for sharepoint 2010 conditional appwrap hide log off   -->
    Change the following (base 64 encoded)

    From:

    PC9UaXRsZT48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0IiBzcmM9IldobE93blVSTHNjcmlw
    
    dHMvQ2FjaGVDbGVhbi5qcyI+PC9zY3JpcHQ+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCIg
    
    c3JjPSJXaGxPd25VUkxsb2dvZmZQYXJhbXMuYXNwP3NpdGVfbmFtZT1XaGxTaXRlTmFtZSZzZWN1
    
    cmU9V2hsU2VjdXJlIj48L3NjcmlwdD4NCiAgICAgICAgICA8c2NyaXB0IGxhbmd1YWdlPSJKYXZh
    
    U2NyaXB0IiBzcmM9IldobE93blVSTHNjcmlwdHMvbG9nb2ZmLmpzIj48L3NjcmlwdD4=

    To:

    PC90aXRsZT48c2NyaXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0IiBzcmM9IldobE93blVSTHNjcmlw
    
    dHMvQ2FjaGVDbGVhbi5qcyI+PC9zY3JpcHQ+PHNjcmlwdCBsYW5ndWFnZT0iSmF2YVNjcmlwdCIg
    
    c3JjPSJXaGxPd25VUkxsb2dvZmZQYXJhbXMuYXNwP3NpdGVfbmFtZT1XaGxTaXRlTmFtZSZhbXA7
    
    c2VjdXJlPVdobFNlY3VyZSI+PC9zY3JpcHQ+DQogICAgICAgICAgPHNjcmlwdCBsYW5ndWFnZT0i
    
    SmF2YVNjcmlwdCIgc3JjPSJXaGxPd25VUkxzY3JpcHRzL2xvZ29mZi5qcyI+PC9zY3JpcHQ+

    Thanks!
    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    Tuesday, October 5, 2010 12:53 PM
    Moderator
  • Jason and T roy,

    Neither of these solutions was a complete fix for me, but thanks for the push in the right direction.

    I followed Jasons approach because it appears that the approach T roy took has been partially implemented in the latest service pack. (My AppWrap file already had the lowercase "title" tag fix.) But the problem still existed for ListFeed RSS and ActivityFeed RSS.

    In my case I opened UAG Console, Trunk Configuration, Portal Tab, "Do not parse response bodies on these requests:" Button.

    The internal name of the portal was already present BUT it was "intranet.contoso.com" I changed this to "intranet\.contoso\.com and added the following URLs:

    • .*/_layouts/listfeed.aspx.*
    • .*/_layouts/rssxslt.aspx.*
    • .*/_layouts/activityfeed.aspx.*

    Activate Configuration, wait for "Activation Completed Successfully" message and test.

    I am pretty sure that there is a way to fix the AppWrap code, but I'll leave that for the big dogs.

    HTH,

    Matthew


    Matthew McDermott, MVP SharePoint
    Saturday, January 22, 2011 1:12 PM
  • I wrote the full solution in my blog, have a look and search for RSS Cheers JJ
    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    Saturday, January 22, 2011 5:58 PM
    Moderator
  • I see that, though it does not resolve the Social RSS feeds in 2010. It would be nice if the UAG team addressed this in a service pack.

    Thanks for the push in the right direction.


    Matthew McDermott, MVP SharePoint
    Saturday, January 22, 2011 6:07 PM
  • Is that the additional path? Haven't seen that in SharePoint before, but will update my blog if it needs to be included too? Cheers JJ
    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    Saturday, January 22, 2011 8:15 PM
    Moderator
  • Yes, the ActivityFeed is a new part of the Social Features in 2010, it's on the My Site. It wasn't there in 2007. I have been buried in it for a few days now. If I find other places that break I'll post them here.
    Matthew McDermott, MVP SharePoint
    Saturday, January 22, 2011 10:16 PM
  • Yes, the ActivityFeed is a new part of the Social Features in 2010, it's on the My Site. It wasn't there in 2007. I have been buried in it for a few days now. If I find other places that break I'll post them here.
    Matthew McDermott, MVP SharePoint

    Ok, I will amend my article to include that - thanks!
    Jason Jones | Forefront MVP | Silversands Ltd | My Blogs: http://blog.msedge.org.uk and http://blog.msfirewall.org.uk
    Monday, January 24, 2011 10:34 AM
    Moderator
  • One additional update. Adding the activityfeed.aspx page is not the whole solution. URLs embedded in the feed are not rewritten so the links are broken.

    M


    Matthew McDermott, MVP SharePoint
    Saturday, February 19, 2011 2:24 PM