From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,6bd623312637f478 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.87.100 with SMTP id w4mr1343108wiz.3.1351391039121; Sat, 27 Oct 2012 19:23:59 -0700 (PDT) Path: q13ni70610wii.0!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: ZLIB_ERROR with AWS Date: Sat, 20 Oct 2012 09:47:13 +0200 Organization: cbb software GmbH Message-ID: <1rlmakeghhe91$.j7n87jxwku6w.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: pSb85Ij4EqcuHDcWtw64BQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-10-20T09:47:13+02:00 List-Id: On Sat, 20 Oct 2012 07:23:54 +0000 (UTC), Okasu wrote: > On 2012-10-20, Okasu wrote: >> 1) How can i use Get with HTTPS >> I'm getting "raised CONSTRAINT_ERROR : aws-url.adb:338 range check >> failed" after attempt to get certificate from host and use as Get >> Certificate argument. Code: >> ----- >> Cert : AWS.Net.SSL.Certificate.Object := >> Get_Certificate (Create (AWS.URL.Host (AWS.URL.Parse (Link)))); >> ----- > > I'm trying to get certificate because plain Get ("https://url") > produces "PROGRAM_ERROR: aws-client.adb:408 finalize/adjust raised > exception". > But not sure if it help. No, it looks like a typical problem of the clean up involving controlled types. That is when an exception is propagated amidst of some process involving controlled objects in possibly not a coherent state. So that when the propagation starts kicking them out of existence a call Finalize may fail. That turns the original exception into Program_Error. This stuff is barely testable, because one cannot foresee and emulate all possible exceptions at all possible places. I bet that almost any Ada program has issues of this kind. So, it is a bug, but not the original problem. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de