LeassTaTT / zscreen

Automatically exported from code.google.com/p/zscreen
1 stars 2 forks source link

Crash when url not found in "custom uploader" or invalid url #786

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I've made my own picture uploader who add a watermark for use with this 
amazing programm.

I've configured the custom uploader, and for the regex I use .*
My uploader give directly the url of the uploaded file and it's working great.

But: if my uploader didn't give an URL an give an error message, ZUploader show 
me a popup with the error message and if I click on the popup, ZUploader 
crashes and I've to run it again.

What is the expected output?
 The expected output: just show the error message without crashing :p

I'm using ZUploader 5.5.0 r3030
on Windows 7 x64 Ultimate

Thank's a lot ;)

Original issue reported on code.google.com by serveur....@gmail.com on 8 Apr 2012 at 4:20

GoogleCodeExporter commented 9 years ago
Are you tried using regex like this: http://.+ so if response is not url then 
it will show error in list probably because url will be empty. Not sure too.

Original comment by flexy...@gmail.com on 8 Apr 2012 at 4:34

GoogleCodeExporter commented 9 years ago
I've try now with http://.+
when I click on the popup a new window appear ( 
http://f4st.pl/3KD_2012-04-08_19-04-52.png ) then when I click on OK the main 
app crashes http://f4st.pl/Ntd_2012-04-08_19-07-15.png

Original comment by serveur....@gmail.com on 8 Apr 2012 at 5:08

GoogleCodeExporter commented 9 years ago
Because you are not using regex. Default is returning whole response. Write $1 
to full image textbox. It means use first regex. Also have these syntax support 
if i remember correctly:
http:// $1 ($2 == "test" ? "img" : "")
So you can use normal text, regex, or if statement.
I not wrote documentation for it because my english not enough to explain this 
:P Also i thought nobody using this custom uploader.

Original comment by flexy...@gmail.com on 8 Apr 2012 at 5:13

GoogleCodeExporter commented 9 years ago
Example: https://dl.dropbox.com/u/14076298/ZUploader/2012/04/XS0kcY.png

Original comment by flexy...@gmail.com on 8 Apr 2012 at 5:14

GoogleCodeExporter commented 9 years ago
Ohh ok, thanks a lot :) I'll make some tests.
I love use custom uploader and private hosting system.
I dislike use big system like imageshack or other where everyone are on :p

Original comment by serveur....@gmail.com on 8 Apr 2012 at 5:26

GoogleCodeExporter commented 9 years ago
I tested now if error happen you can see it from list.
Show errors showing this:
System.Exception: Upload errors: URL is empty.
and Show response will show your error.

Original comment by flexy...@gmail.com on 8 Apr 2012 at 5:32