| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 107,606
» Latest member: Fa88bcom
» Forum threads: 2,440
» Forum posts: 11,408
Full Statistics
|
| Online Users |
There are currently 1551 online users. » 1 Member(s) | 1547 Guest(s) Applebot, Bing, Google, xoilaczcv
|
|
|
| IW 15.1.2 download issue |
|
Posted by: SorenJensen - 08-02-2019, 04:21 AM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Hi Alexandre,
I see from the tread about IW 15.1.2 is out, that you have a number of issues to solve, so this might not be the most urgent:
When installing the IW 15.1.2, and selecting the "Install IWBootstrap Demos and Resources", the installer downloads 1,91mb out of 9,15mb and then halts with the message "Sorry, the files could not be downloaded. Click Retry.... or cancel...."
Retry do not solve it.
NB! I am running the install as administrator and my viruscheck is off.
Regards
Soren
|
|
|
| IW 15.1.x+ gSessions.Execute Q&A |
|
Posted by: DanBarclay - 08-01-2019, 07:45 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Finally upgrading to 15.1.2, I've got some questions (based on some assumptions) about dealing with session lists.
One thing I do occasionally is rip through the sessions to gather status information, including some app specific data from UserSession.
Questions regarding gSessions.Execute():
1. Is it safe to read data from UserSession? (form xx:=TIWUserSession(LSession.Data).MyValue)
2. Is it safe to write data to UserSession? (form TIWUserSession(LSession.Data).MyFlag:=true)
3. Do I need to lock the session, or does the gSessions.Execute() lock before calling the procedure?
I do know that this kind of procedure works (see snip below), just converting from the SessionList demo, but:
Code: gSessions.Execute(LSessionList[i],
procedure(aSession: TObject)
var
LSession: TIWApplication absolute aSession;
begin
LSession.Lock;
try
xx:=TIWUserSession(LSession.Data).MyValue;
// etc
finally
LSession.Unlock;
end;
end;);
Is this kind of cross session (UserSession access) safe?
Is the session.lock redundant?
I finally got back to work on some IW stuff so am upgrading, but my source access isn't turned on yet so I don't know what's behind the .execute curtain.
Thanks,
Dan
|
|
|
| WebApplication.SendFile question |
|
Posted by: Toni Santa - 07-31-2019, 03:50 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Hi,
putting the code in a buttons AsyncClick-event the 4 parameter with the filename is ignored. This can be reproduced with the DownloadFromCache sample project.
Code: procedure TIWForm23.btnDownloadAsyncClick(Sender: TObject;
EventParams: TStringList);
begin
WebApplication.SendFile(gSC.CacheDir + FFileName, True, FContentType, 'SampleFile.txt');
end;
In mine real time app I've code where after a SendFile in the browser appears the hourglass and hangs when the same code is executed from the click-event, but works fine from the AsyncClick-event. But the AsyncClick has above problem ignoring the filename.
IW15.1.0 Evaluation, Delphi Rio 10.3.1
Thx
Toni
|
|
|
| TIWURLWindow question |
|
Posted by: Toni Santa - 07-31-2019, 09:41 AM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Hi, I'm using the TIWURLWindow-control to show the contents of a PDF file with following code found in your examples
Code: procedure TfrmMain.SendPdfStreamToURLWindow(const aPDFFile, aUserFilename: string);
var
xURL: string;
xFileStream: TFileStream;
begin
uwAnteprima.URI := '';
xFileStream := TFileStream.Create(aPDFFile, fmOpenRead);
try
xURL := TIWAppCache.StreamToCacheFile(Self, xFileStream, TIWMimeTypes.GetAsString(mtPDF), ctOneTime);
uwAnteprima.URI := xURL;
finally
xFileStream.Free;
end;
end;
All works fine. Now the pdf-viewer (f.e. in Edge or Chrome) has a "download"-button. Clicking it, the browser shows a "cryptic" name. Is there a way to force the cache-filename with the name of my choice (original name or somewhat stored in my underlying database)?
thanks and best regards
Toni Santa
|
|
|
| 15.1.1 WebApplication.RunParams.Values issue |
|
Posted by: zsleo - 07-31-2019, 01:19 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
I rebuilt an app as stand alone and the WebApplication.RunParams.Values that was working for years is now not parsed unless I set ShowStartParams = True.
If ShowStartParams = False then WebApplication.RunParams.Values.Text = null string.
Help to fix this please...
I have also tried by as HTTP SYS
TIA
|
|
|
| General question |
|
Posted by: msgopala - 07-30-2019, 02:16 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Sorry to be posting this here but I am at a loss. How do I prevent brute force attack .
Problem:
After going live with my IW dll we have had insane amount of ping requests t non-existant folders and files. We are a very small shop and I have tried changing IP bindings, blocking IP and IP ranges on the server firewall and IIS. Pings have reduced but still there. The failed request trace logs show IPs from China, Brazil, Russia etc.
IIS goes down after repeated pings and our intraweb dlls stop working when users are logged in.
I appreciate any advice I can get.
Sorry about posting this here.
|
|
|
| Session open even close browser |
|
Posted by: v.lasquibar@telefonica.net - 07-29-2019, 06:52 PM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hi,
I have an app developped in Delphi 10.2 with IW 15.1, and installed as a service (Mode SA). Sometimes I found this behaviour:
- User starts application (http:my_server:34567/$/start) and perform some actions. The controls can show depends on actions.
Then, user:
a) Start another browser without closing the first one. User can see same form than in the same, with some diferencies.; or
b) User closes browser and start it again, or open a different browser. User can see last form, instead the first one.
Is there any way to force the browser to go to the first form, initial status?
Best regards,
Venancio Lasquibar
|
|
|
|