sky201503 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

iOS App crashes when using the img widget #318

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have the following structure in my sitemap:

Text label="Test" icon="energy" {
...
    Text label="Camera" {
        Image url="http://user:password@cam.net.internal/cgi-bin/image.jpg?imgprof=VGA" refresh=100
    }
....
}

cam.net.internal resolves to the ip of a camera in my local network 

When opening the page the image of the cam is displayed correctly (even if the 
refresh rate is much lower than 10/s). But wenn leaving the page with the link 
to the previous page in the upper left corner the iOS app crashes.  This is 
reproducible on every try and with different image sizes.

The was observed on an iPad 3 with iOS 6.1.3 and the latest openHAB iOS app.

Original issue reported on code.google.com by estan...@gmx.de on 27 May 2013 at 11:33

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 27 May 2013 at 5:52

GoogleCodeExporter commented 8 years ago
Hi Estancia,

So this is  a text label with a "refreshing" image url. I understand it works 
nicely until you go back. 

Could you attach a copy of your sitemap? Delete any sensitive info and post it 
please, so I can have a look at it.

P.D.: Sorry for the delay! The mail of the new bug was at junk mail folder! 

Original comment by openhabi...@gmail.com on 10 Jul 2013 at 11:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry, made a mistake in the first try.

Attached is a minimal version of the sitemap with which I can reproduce the 
problem. The app crashes as soon as I hit the "Garten" button in the upper left 
corner of the page displaying the image.

Original comment by estan...@gmx.de on 10 Jul 2013 at 9:04

GoogleCodeExporter commented 8 years ago
And here is the missing file

Original comment by estan...@gmx.de on 10 Jul 2013 at 9:15

Attachments:

GoogleCodeExporter commented 8 years ago
Pablo, any news on this issue?

Original comment by kai.openhab on 17 Aug 2013 at 7:20

GoogleCodeExporter commented 8 years ago

Original comment by teichsta on 5 Nov 2013 at 10:47

GoogleCodeExporter commented 8 years ago
Hi everyone! At last did my job with the app I was trying to build. Well I 
downloaded last version of openHAB and tried the map using that url just to 
check if it worked and tried using the default demo map, and it does not work 
because REST API does not expose the IMAGE URL, so I cannot test your crash, 
take a look at the REST response for your sitemap:

{"name":"test","link":"http://localhost:8080/rest/sitemaps/test","homepage":{"id
":"default","title":"Hauptmenu","link":"http://localhost:8080/rest/sitemaps/defa
ult/default","leaf":"false","widget":{"widgetId":"default_0","type":"Frame","lab
el":"Räume","icon":"frame","widget":{"widgetId":"default_0_0","type":"Text","
label":"Garten","icon":"garden","linkedPage":{"id":"0000","title":"Garten","icon
":"garden","link":"http://localhost:8080/rest/sitemaps/default/0000","leaf":"fal
se","widget":{"widgetId":"0000_0","type":"Text","label":"Cam","icon":"text","lin
kedPage":{"id":"000000","title":"Cam","icon":"text","link":"http://localhost:808
0/rest/sitemaps/default/000000","leaf":"true","widget":{"widgetId":"000000_0","t
ype":"Image","label":"","icon":"image","refresh":"100","url":"http://localhost:8
080/proxy?sitemap=default.sitemap&widgetId=00000000"}}}}}}}} 

I get "http://localhost:8080/proxy?sitemap=default.sitemap&widgetId=00000000" 
instead of "http://user:pass@cam.domain.internal/cgi-bin/image.jpg?imgprof=VGA" 
which is the URL for the image widget.

Original comment by pablo.ro...@gmail.com on 14 Nov 2013 at 3:07

GoogleCodeExporter commented 8 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:08

GoogleCodeExporter commented 8 years ago
see above!

Issue has been migrated to Github and should be discussed there.

Original comment by teichsta on 21 Nov 2013 at 1:51