Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,359
» Latest member: Elysiabrown
» Forum threads: 2,154
» Forum posts: 10,484

Full Statistics

Online Users
There are currently 243 online users.
» 0 Member(s) | 240 Guest(s)
Bing, Facebook, Google

Latest Threads
Call TPicture.Assign in a...
Forum: IntraWeb General Discussion
Last Post: lmengyew
04-26-2024, 09:48 AM
» Replies: 0
» Views: 58
Http.sys application prom...
Forum: IntraWeb General Discussion
Last Post: lmengyew
04-26-2024, 08:25 AM
» Replies: 2
» Views: 746
IntraWeb Bootstrap4 - dem...
Forum: IntraWeb General Discussion
Last Post: jindrich.volek
04-25-2024, 03:16 PM
» Replies: 0
» Views: 94
Dummy div in a IWRegion
Forum: IntraWeb General Discussion
Last Post: StephB
04-24-2024, 03:58 PM
» Replies: 2
» Views: 170
Create components at runt...
Forum: IntraWeb General Discussion
Last Post: PaulWeem
04-23-2024, 10:27 PM
» Replies: 1
» Views: 160
message when added TIWDBN...
Forum: IntraWeb General Discussion
Last Post: Mike_A
04-22-2024, 02:09 PM
» Replies: 6
» Views: 1,318
303 Redirect and Response...
Forum: IntraWeb General Discussion
Last Post: ALW2019
04-22-2024, 01:25 PM
» Replies: 3
» Views: 576
IW 15.5.9 IWChart
Forum: IntraWeb General Discussion
Last Post: PaulWeem
04-22-2024, 07:16 AM
» Replies: 2
» Views: 277
Data Decimation in ChartJ...
Forum: IntraWeb General Discussion
Last Post: iwuser
04-22-2024, 06:51 AM
» Replies: 8
» Views: 1,663
ClassicRegionDraw
Forum: IntraWeb General Discussion
Last Post: JuergenS
04-17-2024, 05:35 PM
» Replies: 0
» Views: 170

 
  Mixing of usersessions?
Posted by: etwoss - 11-16-2019, 08:51 AM - Forum: IntraWeb General Discussion - Replies (4)

Hi

I use a datamodule pool with my program. Each user can have a different db to look at. The usersession holds the path to that database,
Now i adjusted the Lock and Unlock :

Code:
function LockDataModule: TDtmMain;
begin
  Result := TDtmMain(TIWServerController(GServerController).Pool.Lock);
  if Result.IBDatabase.Connected then
  begin
    if Result.IBTransaction.InTransaction then
         Result.IBTransaction.Rollback;

    Result.IBDatabase.Connected := False;
  end;

  Result.IBDatabase.DatabaseName := UserSession.DbPad;
  Result.IBDatabase.Open;
end;

And

Code:
procedure UnlockDataModule(ADataModule: TDtmMain);
var
  LTemp: TDataModule;
begin
  LTemp := ADataModule;
  if TDtmMain(LTemp).IBTransaction.InTransaction then
     TDtmMain(LTemp).IBTransaction.Rollback;

  TDtmMain(LTemp).IBDatabase.CloseDataSets;
  TDtmMain(LTemp).IBDatabase.Close;
  TDtmMain(ADataModule).IBDatabase.DatabaseName := '';

  TIWServerController(GServerController).Pool.Unlock(LTemp);
end;


However, once in every 4-6 months we have a customer showing me data from another customers db! Which is ofcourse not what i want.
After loggin out/in the users gets the correct database info.

It's all about the line

Code:
  Result.IBDatabase.DatabaseName := UserSession.DbPad;

Which should work properly , if it choses someone else its usersession, this goes wrong.

Any idea what could go wrong ???

Eric

Print this item

  E-Mail Validate??
Posted by: ShaneStump - 11-15-2019, 07:21 PM - Forum: IntraWeb General Discussion - Replies (5)

Howdy All!

I have an e-mail regexp that I have been using that validates most e-mail addresses.

I have tried it (and many others I have seen in stackoverflow) and none of them validate a test e-mail account I have been given by Viator. I have tried some of the online validators and they work!

So my question is does anyone have a C++ or Delphi regexp that can validate the following e-mail account and return True.

MSG-8b17fa92-7b35-4fdb-9f18-f8a69252e019+BR-999999999@expmessaging.tripadvisor.com

Thanks in advance,

Shane

Print this item

  IW unable to server static files in folder
Posted by: cprmlao@hotmail.com - 11-15-2019, 01:53 PM - Forum: IntraWeb General Discussion - Replies (9)

Hi I am trying create a valid SSL certificate withn zeroSSL.

To validate the CSR I choice HTTP option and zeroSSL saids I have to put some files in "{wwwroot}.well-known/acme-challenge/" folder

I am having a problem where IW is unable to server static files when I create ".well-known/acme-challenge/"  into wwwroot.

IW returns an error of "Resource not found".

It seems IW has a problem com "hyphen". I was searching in the google, I can see "hyphen" is a legal char in a URL and doesn´t needs to encode it.
But if I encode it, I also have the same problem.



Code:
127.0.0.1/.well-known/acme-challenge/teste.txt   // here I get resource not found


I did a test changing  the names folder to the next, and it works
Code:
127.0.0.1/.well-known/acme_challenge/teste.txt  // here it works

But I need to use:
Code:
127.0.0.1/.well-known/acme-challenge/teste.txt

I have tried to change  hyphen with "%2D" but no look.

How could I fix it?
Is it a IW bug?

Regards, Luiz

Print this item

  TIdTelnet Disconnect
Posted by: omarreis - 11-15-2019, 01:03 PM - Forum: Indy General Discussion - Replies (4)

I'm using telnet client in my app, to access streaming market data.
It works ok for Windows and iOS, but on Android the app hangs
for several seconds when telnet.Disconnect is called.  So much that
Android detects the app is stalled and terminates it.

I understand that Connect and Disconnect can block the
execution, so they are not to be called from the UI thread.
But why Disconnect takes so long ?

One guy suggested on stackoverflow that the reader thread
was locked or not finishing, and that blocked the Disconnect call.

So I tried to create a thread dedicated to disconnect.
It seems to work   Smile 

Code:
procedure TForm1.ThreadedTelnetDisconnect;
var aThreadDisconnect:TThread;
begin
  aThreadDisconnect := TThread.CreateAnonymousThread(
      procedure begin
        IdTelnet1.Disconnect;
      end);
  aThreadDisconnect.start();
end;

Print this item

  GStack.LocalAddress returns empty only with Delphi 10
Posted by: processeur_fou - 11-14-2019, 05:15 PM - Forum: Indy General Discussion - Replies (8)

Hello,

I use UDP to send a  video stream to VLC, it works very well when I have a local network active (Wifi or Ethernet).
But if I have no Wifi and no Ethernet card activated, it works if I compile my source code using Delphi2010 ( using 127.0.0.1 IP address) but doesn’t work if I compile my source code using Delphi 10.
After searching, I discover that  my procedure to find local IP can find 127.0.0.1 ( Nbr of local IP =1) using Delphi 2010 but find no local IP using Delphi 10 (Nbr of local IP = 0)

Code:
TIdStack.IncUsage;  LocalIPasked := '0.0.0.0';
  try    //**************************************************************
    NbLocalIP := GStack.LocalAddresses.Count;
    Memo1.Lines.Add(Format('nbr of local IP= %d ', [NbLocalIP]));
    for i := 0 to NbLocalIP-1 do
      begin
        Memo1.Lines.Add(Format('IP n° %d = %s', [i + 1, GStack.LocalAddresses[i]]));
      end;
  finally
    TIdStack.DecUsage;
  end;

 
Why do I have this difference between Delphi2010 and Delphi_10 ? Have I miss something or compiler setup when I change my Delphi 2010 to Delphi 10?


Rem: I have tested also a second way to find the number of local IP but same result (0) using Delphi 10


Code:
...
LList := TIdStackLocalAddressList.Create;
  try
    GStack.GetLocalAddressList(LList);
    Memo1.Lines.Add(Format('nbr of local IP found: %d ', [LList.Count]));
...

Result is 0 using Delphi 10

Can someone tell me where I miss something?
Thank you.

Print this item

  TMS Intraweb Components with IW15 ?
Posted by: SorenJensen - 11-14-2019, 12:32 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi all,

I'm considering investing in the TMS Intraweb Component Pro Pack, mainly due to requirements for listing SQL table data in grid form, with options for paging and for on-screen viewing / searching and with options for printing grid contents directly, or at least export to both Excel and PDF file formats.

Do anyone in here have any experience with that ? Any pros and cons ?

Regards
Soren

Print this item

  Tooltip Button
Posted by: matija - 11-14-2019, 06:33 AM - Forum: IntraWeb General Discussion - Replies (3)

I have in template define IWButton {%IWButton1%}.

My JS: $("[data-toggle=tooltip]").tooltip();

My Atribute: data-toggle="tooltip" data-placement="top" data-html="true" title="text <br/>text" 

Where insert Tooltip atribute?

Print this item

  Protect against ddos
Posted by: tlang@bst-gmbh.com - 11-13-2019, 09:03 AM - Forum: IntraWeb General Discussion - Replies (19)

Hello,

i have an intraweb application running as ISAPI.DLL in IIS.

How can i protect against ddos attacks.

I have testet, everyone on this world knowing my hostname und Name of the dll can crash my side with a simple stress tool.

It takes just 5 to 10 minutes to crash the side and also all other websides running in iis.

How can i protect against it.

Thanks
Theo

Print this item

  IW 15.1.8 is out
Posted by: Alexandre Machado - 11-12-2019, 09:26 AM - Forum: IntraWeb General Discussion - Replies (5)

There is a new update available, version 15.1.8

https://www.atozed.com/2019/11/15-1-8/

For Delphi 10.3 Rio, you need to install Update 2 and Runtime compatibility patch:

Update 2: http://docwiki.embarcadero.com/RADStudio..._Release_2

Runtime compatibility patch: https://cc.embarcadero.com/item/30886


Enjoy  Big Grin

Print this item

  reverse proxy issue? Fails on 15.1.5 works on 15.0.17
Posted by: PDSBILL - 11-11-2019, 03:41 PM - Forum: IntraWeb General Discussion - Replies (27)

I have create a simple app with 2 forms. each form has a button to go to the other form on async click
when run the first form appears but when I attempt to go to the 2nd form, I get an error. I asked the web IT what is causing the error and here is his response,
this program works under IW 15.0.17 but fails under 15.1.5.

below is response from customer IT staff.

So here’s what’s happening.  The site is making an ajax request that returns XML which has javascript commands that are being executed.  The one being returned is redirecting to a URL, but in that URL is the translation IP address.  I’m not sure if it’s possible with the program to tell it to use absolute URLs to the route (i.e. /webppreviewer_DEV/projecttestssl.dll/) without the domain or IP, or if there is a way around this.
 
The Url rewrite module on the reverse proxy is supposed to make this change, but it’s set to do it on outgoing html traffic.  I changed it to also look for outgoing XML and to add the <literal> tag, but it’s still not catching it, probably because it’s in a CDATA section.
[Image: 0?ui=2&ik=e38e4c2a0d&attid=0.1&permmsgid...8&disp=emb]
<response>
<execute>
<literal>
<![CDATA[
window.location.replace("http://10.10.250.38/webppreviewer_DEV/projecttestssl.dll/");
]]>
</literal>
</execute>
<trackid>11</trackid>
</response>

Print this item