Some days ago, after having created a second SSP (Shared Service Provider) in our Sharepoint 2007 Farm, we started to witness a quite strange behavior.
The object type of the built-in metada FileExtension had suddenly changed from String to Object. If you explore the DataTable returned by the query, you will see that the type is System.String.
so if you had the following code:
//drv is a DataRowView
string extension = drv[“FileExtension”].toString();
this will return System.String instead of the file extension.
We have not found the root of the issue, so we implemented a dirty solution.
if (drv[“FileExtension”] is String)
extension = ((String)drv[“FileExtension”]);
If you have any additional information about this issue, feel free to post your answer.
We have today created a second SSP in another farm and I can confirm that this is the root of the issue.
We launched the search query before and after the SSP installation.
Before the query, the FileExtension metadata type is correctly set to String.
After the query, the FileExtension metadata type has suddenly changed to Object.