Wednesday, March 28, 2012

How to resolve files in SharePoint been destroyed from MAC WebDav?


SharePoint uses WebDAV as a foundational technology.  MacOS has a WebDAV client built-in.  Sounds like a good thing you could integrate SharePoint through WebDAV on MacOS , right?  Wrong. There is a critical issue that files will be destroyed if drag/drop from MacOS with built-in WebDAV client to SharePoint!

Here are the steps to reproduce this issue.
  1. Upload one file named TestText.txt to SharePoint library through browser
  2. Setup WebDAV from MacOS computer. Check here for detailed procedure.
  3. Drag and drop the file TestText.txt to SharePoint through WebDAV
  4. The file TestText.txt size will become ZERO – content destroyed as shown in the screen shot!

In our company, even MAC is not supported by IT, many people are still using MAC and connect to SharePoint through WebDAV. We have to find workarounds and solution.

Here are some workarounds.

The best solution to this problem we know of is the Microsoft Document Connection utility that is in Office for Mac 2008 R2 or 2011, Mac users can get a solution similar to WebDav that will support Basic Authentication.

To configure Microsoft Document Connection to work with SharePoint Online as part of the Microsoft Online service, follow these steps:
  • Make sure that Office 2008 for Mac is upgraded to Office 2008 for Mac SP2 or Office 2011. To do this, use Microsoft AutoUpdate.
  • Start Microsoft Document Connection. To do this, in Finder, under Applications, and then click Office 2008.
  • On the menu bar, click Document Connection, and then click Preferences.
  • In the Preferences window, make sure that the Enable Basic Authentication check box is selected.
  • Close the Preferences window. In the main window, click Add Location, and then click Connect to a SharePoint Site.
  • In the Site Address box, enter the main site collection address for the SharePoint site (including the http://).
  • Authentication should be set to Username and password.
    Click the Connect button.
    You should now have access to the documents in the SharePoint site collection.
    For more information, visit the following Microsoft Web site:
    http://www.microsoft.com/mac/itpros/dcc.mspx

The other is Transmit, from a company called Panic. Transmit will allow for bulk download/upload whereas the Microsoft Document Connector is for working with a single document.

You If folks don’t have Office for Mac there is another utility suggested by users on the Apple support sites called muCommande. Another is Cyberduck is a utility available from the Mac app store

After we provided the workarounds to users, we received strong message from them. 
Below is some of the feedback for these workarounds.

1 –We can tell our Mac users to use the utility Microsoft provides, but there is no guarantee that they will and no safeguard in case they don’t
2 – This is not an acceptable workaround, as the consequence of not using the utility completely destroys the file in SharePoint along with all of its revisions. The workaround is unacceptable; as we can’t be sure our Mac users will not at some point forget to use the utility. This becomes especially important if we open up parts of our document repository internally to the company.
3 – About half of our team uses Macs. I’m not sure about the rest of the company, but a good portion of the folks that will have access to our site are Mac users.
Do you believe our Microsoft contact understands the integrity issue? Do they understand that using a common Mac OS X workflow, SharePoint documents can be obliterated? If their intent is to have SharePoint provide a robust, fault-tolerant document storage system that guarantees file integrity, they’re answer can’t simply be “don’t do that”.

As a result, we are continue researching the final solutions to block Mac WebDav calls. There are two layers (load balance or IIS) we could implement block these calls. My college Martin Bogan worked with our load balance NetScaler team and identify the way to block the calls.

Here is the solution to block Mac WebDav calls from NetScaler load balance.

The policy on the NetScaler is filtering on any HTTP headers that have both WebDAVFS and Darwin and will DROP based on that criteria.

HTTP.REQ.FULL_HEADER.CONTAINS("WebDAVFS")&& HTTP.REQ.FULL_HEADER.CONTAINS("Darwin")

This seems like to block all Mac WebDav calls without impacting other SharePoint functions. We are in the process to work with Microsoft to verify any potential impact.

Great thanks to Martin Bogan, several business analysts, and network team to provide the solution.


Mail List Archiving with SharePoint 2010

Recently exchange team has requested SharePoint team to evaluate mail list archiving with SharePoint strategy. The current mail list could include internal employee’s email, group email, and external emails such as gmais. If email has been send to the mail list, anyone included in this email list will be able to receive email notification. Emails are archived in exchange public folders you could browse. This blog covers the necessary design how to implement this archiving in SharePoint with answers to questions from the teams.

1. Current Mail List Archiving Process
Today when a mail list is archived one of the two below methods are used:
  • MailAR – This is the original archiving solution that is hosted on a UNIX host.  There is a single account that is a member of many lists that are flagged for archiving and any time a message is sent to the list a copy is sent to MailAR where it is deposited into an archive.  This archive is accessible via a web client, the content is kept forever, and it has specific access controls so that only members of a list can see mail in the archive unless it is a public list.
  • Exchange Public Folders – This was our first stab at trying to move away from MailAR because it was not reliable.  Similar to MailAR there is an account that is a member of each list that is to be archived and whenever an email is sent to the mail list a copy goes to the Exchange public folder.  The public folder is accessible through Outlook as well as through MyMail. See the picture below.


2. Mail List Archiving Requirements
Exchange public folders really aren’t working out like we would like and is missing a lot of important features which we really require.  Exchange team has been looking around for a suitable replacement, such as Jive, but hasn’t found any except for SharePoint.  The current requirements exchange team provided are as follows:

  • Easily accessible from any popular browser (IE, Firefox, Safari)
  • Content indexed and searchable
  • Content completely discoverable for legal purposes
  • Storage equivalent to Qualcomm mailboxes (5GB) and extendable when required.  Aging out data is a possibility and open for discussion.
  • Message size limits in line with the messaging system (50MB per e-mail)
  • Lock down archived data so that only current members of the list can see the archive contents (read only) unless it is a public mail list.
  • Archived data is READ ONLY to everyone with the exception of IT staff such as MSG or SharePoint admins in cases where ITSEC requires a message to be removed.
  • There shouldn’t be anything displayed on the landing page but the archives themselves (and only the archives the visitor has rights to open should be visible).
 
3. SharePoint Design to Support Mail List Archiving
There are several limitations and risks if we implement SharePoint to support mail list archiving. This includes but not limited to the following items.

  • Email size – Current exchange support 50M and SharePoint default is 10M. If we increase the default size, it will impact SharePoint performance and storage requirement.
  • Numbers of emails per folder – Current exchange support ‘unlimited’ number of emails. However, SharePoint has the list throttling setting to display only 2000 emails even millions of the emails have been stored. If we change the list throttling setting, it will impact performance.
  • Total size of the emails per folder – Current exchange will allow 5G as the default. Exchange team provides the average growth rate for normal public folder is about 500M in two years. SharePoint may need to increase storage to support the growth.
  • Total size of the ALL email folder - Current exchange has not provided the total number of public folders and we will need this input to design the hardware, storage, and possible storage archiving strategy.
 
4. SharePoint 2010 SP1 Capacity
Here is the SharePoint capacity limitation based on 2010 and SP1.
  • Site collection 250,000 per Web application
  • Content database 200G to 4T
  • No limit for number of lists per site collection
  • Items 30,000,000 per list
  • List view threshold 5,000
  • A new limit of 60 million items in any one SharePoint content database

5. SharePoint Architect Design
In order to support the mail list archiving with SharePoint requirements and minimize the maintenance cost, we would like to propose the following architect. Assumption is exchange email list will handle the external email and forward email to SharePoint.

  • Build a separate web application that has separate site collection quota, list throttling, and content databases.
  • Reuse current services including search index service to minimize maintenance cost. WE may need to add different services if the load increasing to a certain point that current services could not handle.
  • Create separate only one site collection in one content database to host all public folders.
  • Create multiple folders inside the same site collection to reflect current public folder.
  • Create separate archive site collections to host aged public folders
  • Apply policy or governance to archive emails from primary site collection to backup site collection



6. SharePoint Design for Mail Archiving Requirement
Here are answers to the requirement.
  • Easily accessible from any popular browser (IE, Firefox, Safari) – OoB functions 
         SharePoint support these three major browsers. However, some functions may not work exactly same in Firefox and Safari comparing to IE.
  • Content indexed and searchable – OoB configurations         
          The design will provide a search index services so content will be searchable. The result will be  based on user permissions.

  • Content completely discoverable for legal purposes – Need process change and testing         Current search is through exchange. SharePoint support search but we may need to modify the process to feed search result to existing tools.
  • Storage equivalent to Qualcomm mailboxes (5GB) and extendable when required.  Aging out data is a possibility and open for discussion. – Capacity planning
    • SharePoint could support 5GB for one folder
    • One site collection w/ 200G could hold 40 public folders
    • Aging process can be done to purge to different site collections
    • Current load is 500M in 2 years for one folder and the site could use for 10 years
  • Message size limits in line with the messaging system (50MB per e-mail)
    • As discussed to restrict to 10M to start
    • Customization to handle large than 10M
  • Lock down archived data so that only current members of the list can see the archive contents (read only) unless it is a public mail list.
    • Configure through permissions
    • May require some customizations
  • Archived data is READ ONLY to everyone with the exception of IT staff such as MSG or SharePoint admins in cases where ITSEC requires a message to be removed.
  • There shouldn’t be anything displayed on the landing page but the archives themselves (and only the archives the visitor has rights to open should be visible).
    • Configure through permissions
    • May require some customizations
7. SharePoint Implementation Task Summary
Based on the analyst and design described above, we would need to apply some customizations to SharePoint in addition to configurations. We may need to add servers to support the load based on performance testing result. 

Here are some the high level customization and configuration needed.
  • Mail List Webapp setup and configuration with services
  • Primary site collection setup and configuration
  • Primary site collection home page customization w/ search options
  • Public folder auto provisioning and approval process development
  • Public folder and email capacity monitoring process development
  • Archiving emails and move to backup site collection policy or workflow development
  • Permission related configuration and customizations
  • E-Discovery process testing
  • Performance and load testing with system adjustment
  • Potential two additional server configurations (one WEF and one application servers)

If you have done this on SharePoint, please share your experience.