Lotus Notes Api Error
DocumentGet Windows Temporary PathGet a list of image resourcesConverting Web Attachment to Image ResourcePurge Deletion Stubs ProgrammaticallyIs Database EncryptedBackup Windows DirectoryRemoving Enforce Consistent ACLCreating MS Word Documents (Part 4)Creating MS Word Documents (Part 3)Creating MS Word Documents (Part 2)Creating MS Word Documents (Part 1)Change Replica IDTracking Elapsed Time In LotusScript Agent Using LS2JGet HTML From A URL (Part 3)Creating Excel Spreadsheets In Notes/IE Using OLE/ActiveXCreating Excel Spreadsheets In IE Using ActiveXCreating Excel Spreadsheets In IECreating Excel Spreadsheets In NotesPing In LotusScriptProgrammatically Changing Database IconsGet HTML From A URL (Part 2)Get HTML From A URLReading/Writing Windows ClipboardGet ACL History ClassConverting Host Name To IP AddressShow Notes API ErrorRefresh Design In LotusScriptDetermine User Screen ResolutionShowing Windows Progress Bar Show Notes API Error When you do as much work with the Notes API as we do, you'll end up running into errors at one point or another. When writing programs in C or C++, you can translate the error number to a string pretty easily. But we're doing more and more with the API in LotusScript (we've posted a tip on refreshing the design of a database in LotusScript and have many more examples). In this situation, we needed to be able to translate an error number into a text error message. The most portable way to do all of this is through a script library containing a custom class. That script library can be inherited to any database you need and we'll show how to make the class calls to get the error string. Create a script library called "Notes API Error". All the code goes into the (Declarations) area of the script library: Declare Function W32_OSLoadString Lib "nnotes.dll" Alias "OSLoadString" (Byval handle As Integer, _ Byval errNum As Integer, Byval buffer As Lmbcs String, Byval textLen As Integer) As Integer Const ERR_MASK = &H3FFF Class NotesAPIError Private errNum As Integer Public Sub New(errorNum As Integer) Me.errNum = errorNum End Sub Public Function Message As String Dim temp As Integer Dim result As String temp = Me.errNum And ERR_MASK result = String$(255, 0) temp = W32_OSLoadString(0, temp, result, Len(result)) Message = result End Function End Class If you aren't familiar with using the Notes API in LotusScript, then this is a good introduction. You have to declare the external API function call (refer to the documentation
Training Support Forums & community Events Rational Tivoli WebSphere Java technology Linux Open source SOA and Web services Web development XML My developerWorks About dW Submit content Feedback developerWorks>Lotus>Forums & community>Notes/Domino 6 and 7 Forum Notes/Domino 6 and 7 Forum Lotus Notes API error 0x00001902 (Could not open the ID file) Sign in to participate Previous Next Lotus Notes API error 0x00001902 (Could not open the ID file) Posted by Kenni http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C0200716642 Christoffersen on 28.Sep.07 at 07:27 AM using a Web browserCategory: Notes ClientRelease: 6.0.5Platform: Windows XP I recently purchased a Sony Ericsson P1i, which I'm trying to sync with Lotus Notes. I have managed to get it to sync my address book, but I get an error message when trying to sync calendar/tasks. SE PC http://www-10.lotus.com/ldd/nd6forum.nsf/ReleaseAllThreadedweb/a519a2126d5d2ba085257364003ef963?OpenDocument Suite returns an error: Lotus Notes API error 0x00001902 (Could not open the ID file). SE support believes the error is in the notes.ini file. But I can't rely see where the issue should be. Have anyone experience the same issue? Return to top Lotus Notes API error 0x00001902 (C... (Kenni Christoff... 28.Sep.07) . . RE: Lotus Notes API error 0x0000190... (Rob Goudvis 1.Oct.07) Document options Print this page Search this forum Forum views and search Date (threaded) Date (flat) With excerpt Author Category Platform Release Advanced search Sign In or Register Sign in Forgot your password? Forgot your user name? Create new registration RSS feeds All forum posts RSSAll main topics RSSMore Lotus RSS feeds Resources Resources Forum use and etiquette Native Notes Access Web site Feedback Lotus Support Lotus Support IBM Support Portal - Lotus software Lotus Support documents Lotus support by product Lotus support downloads Lotus support RSS feeds Wikis Wikis IBM Composite Applications IBM Mashup Cent
C API subroutines are written in C and you call them from C programs. With the IBM C API for Notes/Domino, you can write programs that perform a significant subset of the operations available through the Notes user interface http://www-12.lotus.com/ldd/doc/domino_notes/9.0/api90ug.nsf/85255d56004d2bfd85255b1800631684/00cb00910049008485255e3d00774c2f?OpenDocument and some operations that are not available through the user interface. Operating Environments The IBM C API for Notes/Domino supports the same operating environments supported by Notes and Domino: Development of applications for z/OS requires the IBM C API Toolkit http://www.securiteam.com/securitynews/6E0060U2UW.html for Notes/Domino for z/OS. Likewise, development of IBM i applications requires the IBM C API Toolkit for Notes/Domino for IBM i. Except where noted in the Reference , you can use each C API function under all operating environments. Capabilities lotus notes of the IBM C API for Notes/Domino Before using the IBM C API for Notes/Domino, it is important to understand what it is designed to do. The C API is a powerful tool, but like any tool it has a few restrictions. What the IBM C API for Notes/Domino Can Do The IBM C API for Notes/Domino gives you access to many features of the Notes user interface and a few features that are not found in the user interface. For lotus notes api example, you can: Create new Domino databases and delete unneeded databases Read, write, and modify any document in a database Read, write, and modify any of the fields in a document Create and use database indexes (views) Control database access, both with user access lists and roles. Query and manipulate busy times in the free time database (busytime.nsf) Gather and report IBM Domino Server performance statistics Write custom tasks and add them to the IBM Domino Server software The C API allows you to treat databases at a high level by creating and deleting entire databases. You can also copy database elements (macros, forms, views, icons, and so on) intact between databases. You can use the C API to perform any operation on documents and fields in documents. You can create new documents, delete existing documents, and copy documents from one database to another. You can add fields to documents, delete fields from documents, copy fields between documents, read fields, and write into fields. The C API gives you powerful access to Domino database design features. You can create new views, build indexes using these views, and read the list of documents in a view. You can create new forms and lay out the form any way you want. You can create or modify agents and run them from a C API program or from Domino or Notes. The C API also gives you access to some of the Domino syst
Tools Software Testing Tools SecuriTeam in Your Inbox New vulnerability?New tool?Tell us(Our PGP key). BIGIT Indonesia Cyber Security Exchange Discount: SecuriTeam5_SANS Promo With Us Subjects of Interest: Vulnerability Management SQL Injection Buffer Overflows Active Network Scanning Fuzzing Fuzzer Report Network Security Network Scanner Pen Testing Security Scanner Scanner Review Fuzzer Review Web Scanner Review Lotus Notes API Unauthorized Access to File Attachments 29 Sep. 2001 Summary Lotus Notes is a leading integrated e-mail and e-business software for the Internet and corporate intranets. A security vulnerability in the product allows attacker that have gained access to a valid username and password on the Notes server, to access other user's attachments without knowing their username and password. Credit: The information has been provided by jjore. Free Website Security Scan Free Fuzzer Report Vulnerability Assessment Detect web app vulnerabilities University study comparing the top Accurate and automated scanning Get guidance from professionals. 6 commercially availble fuzzers. for networks of any size. Details Protect your website! Free Trial, Nothing to install. No interruption of visitors. www.beyondsecurity.com/vulnerability-scanner Vulnerable systems: Lotus Notes version 5.0.6 Domino server Lotus Notes version 5.0.7 Notes client (Should also apply to 4.x and 5.x servers) A security vulnerability in Lotus Notes allows remote attackers with a valid username and password to the Lotus Domino server to view Notes attachments that belong to other users. The attack is possible via the published C API. The API allows the user to create, delete, read, and modify objects in the database. If an object is accessed directly, access control information (e.g., reader, author) stored in the Note will not be available to the object. As a result, a remote user with authorized access to the Notes database can view Notes attachments by directly accessing the object. Note that the a