Fix add_version to always use storage type of item. Fix add_file topass storage type to add_version to save an unnecessary query whenadding a file and version at the same time.
Add optional package_id parameter to fs::do_notifications to supportattachments package which will not return the correct result fromad_conn package_id.
Make sure all versions of content_item__new behave in the same way, creatinga new revision if content or title is specified. Patch#580 fromDave Manginelli fixes bug#2040.
bug #1997: fixed DS user-switching (U-S), in ds_permission_p giving fake id for party_id = 0, to avoid infinite loops on ad_conn in any new unknown request
bug #1997: fixed DS user-switching (U-S), first checking party_id instead of ad_conn, since calling ad_conn with (U-S) enabled enters into an infinite loop that makes aolserver die, with (U-S) enabled, permission_p will always get an party_id and in this way avoiding calls to ad_conn
bug #1997: fixed DS user-switching (U-S), in ds_permission_p giving fake id for party_id = 0, to avoid infinite loops on ad_conn in any new unknown request
Finally worked out a regexp that seems to work. Tested on bothconfigurations with standard and nonstandard ports. Fixes problemswith ssl redirects on login, and with openssl on non-standard ports.