Archive for February, 2007
Common causes of “Sys is undefined”
Notes:// URLs, Server Hints, and Domain Catalogs (Tuesday, Feb 13)
A friend of mine is having a problem where he has a Notes URL like this:
notes://servername/databaseReplicaID?OpenDatabase
He has no icons for this database on his workspace, and yet when he clicks the link it opens a replica of the database on some other server -- not the one specified in the link.
So I did some searching and found this technote that indicates that calling @Command([FileOpenDBRepID]) to open a database uses the following logic:
- Look for an icon of the database on the workspace, and use that if it's available (if there are multiple icons, use the one at the top of the stack)
- Look for the database using the Catalog/Domain search, and use that if it's available
- Look for the database using the server specified in the server hint, and use that if it's available
- Look for the database on the user's Home Server, and use that if it's available
- Look for the database on the user's local machine, and use that if it's available
- Give the user the "Choose Servers to Search" dialog (listing the servers in your Home Server's Notes Network, and highlighting all servers for which you already have an icon on your workspace)
Okay, that seems reasonable... all except that second and third part. Those look reversed. According to the technote, even if you specify a server hint, the client will always check the Catalog first. And the Catalog is (of course) in alphabetical order, so if you happen to have a server in Anguilla then that one will have preference over a server that may be much closer to you.
Taking this a step further, this LDD post indicates that this is the same logic used when you open a database using a notes:// URL. So even though my friend was clicking this:
notes://servername/databaseReplicaID?OpenDatabase
he was getting the database on "anotherserver" instead of "servername", because "anotherserver" came first in the catalog.
At least, that seems like what was going on. Here are my questions, if anyone can help:
- Can someone in a larger enterprise environment confirm/deny this for me? (ANSWER: yes, that's exactly what's going on)
- Does it help to have the database name instead of the replica ID? (ANSWER: yes, using the database name will fix it)
- Does the same thing happen with doclinks and database links? (ANSWER: yes, the SPR says that doclinks have the same problem)
If the client always checks the Catalog first anyway, then the server hint doesn't do a whole heck of a lot of good, does it?
UPDATE: oh, and I realize that if the server name that is specified in the link is not available via DNS, then the server hint doesn't work. In case you were thinking that was the problem.
SOLUTION: Michael Urspringer did some testing and confirmed that (A) the Catalog server was indeed the problem in this case, and (B) using the database filename instead of the replica ID will fix the problem. Kurt Higley also said that the filename versus replica ID has always worked for him, so a big thanks to Michael and Kurt for coming back with the answer so quickly!
Thanks also to the anonymous commenter who said that SPR EAVM4THH42 indicates that doclinks work the same way (always look at the Catalog server before the server hint).
[ permalink ] [ e-mail me ] [ read/add comments ]
Authoring Sidebar Gadgets in C#
View All Your Google Supplemental Index Results
ASP.NET AJAX in Action Book
Synchronicity
I've been a big Police fan ?since I was little, but was too young to attend the Police Picnics when they were originally touring. ? I have dozens of live Police concerts, and I've seen Sting many times, but I am very psyched to try and see this new tour. ? Of course, getting tickets is not going to be easy, nor cheap! ? The unfortunate part is, the day they are playing Fenway Park in Boston, I will be in Toronto for a wedding! ? ?However, the scheduling gods are not entirely against me. ? The are playing in Toronto at the Air Canada Center the weekend before. ?So if I can get tickets there, I'll just go a week early and see them in Toronto.
Boston would be much better though! ? Fenway Park. ?Outdoors. ?Huge crowd. ? Ah, so sad... but I'll take what I can get, if anything at all.
Free ASP.NET AJAX 1.0 “How Do I?” Videos (Updated for Final Release)
Loading XML from JavaScript
Programmatically create a shortcut for Lotus Notes
Saxon 8.9 Now Available
50% Off ReviewMe Coupon Code
Tidal Delivers Performance Management For SOA On BEA WebLogic Platform
Don?t Get Fooled Again
The other day I was helping a user with a hoax email from Paypal, and I pointed out a Notes feature that I thought would make a good tip for today.
When you hover (don't click!) your cursor over a URL in Notes, you will see the actual destination of the click appear in the status bar at the bottom of the Notes screen.
For example, while this URL appears to go to www.paypal.com, notice at the bottom of the screen it shows that it is really going to www.scannerstalk.com. ?So in this case, I would not trust the link.
I hope this helps you fight the bad guys.





