LDView Crash on Library Update


LDView Crash on Library Update
#1
Hello all, long time user, first time poster.

I am using LDView 4.3 and 4.2 on two different Win7 x64 machines on different networks and I get the same behavior.  Whenever I try to update the library it gets to "Parsing Updates List" and freezes.  Once I hit the X on the update dialog it throws the "close program" dialog.  Anyone else seeing this or have any solutions?

https://www.dropbox.com/s/theclbfwx8novc...1.png?dl=0
Reply
RE: LDView Crash on Library Update
#2
(2020-09-04, 20:19)D. Kohfeld Wrote: Hello all, long time user, first time poster.

I am using LDView 4.3 and 4.2 on two different Win7 x64 machines on different networks and I get the same behavior.  Whenever I try to update the library it gets to "Parsing Updates List" and freezes.  Once I hit the X on the update dialog it throws the "close program" dialog.  Anyone else seeing this or have any solutions?

https://www.dropbox.com/s/theclbfwx8novc...1.png?dl=0

I think LDraw.org force-enabled https for the update CGI, and LDView does not support that. LDView is (obviously) not supposed to crash, but I also don't think LDView will ever support https on that. I'm pretty sure this happened in the past, and Orion fixed it.

When I try the same thing with LDView 4.4 Beta 1, it says, "Error downloading update list." I believe that the reason it doesn't crash in 4.4 Beta 1 is because the last time this happened, I implemented a fix, but that fix has not made it into an official release yet.
Reply
RE: LDView Crash on Library Update
#3
(2020-09-04, 20:39)Travis Cobbs Wrote: I think LDraw.org force-enabled https for the update CGI, and LDView does not support that. LDView is (obviously) not supposed to crash, but I also don't think LDView will ever support https on that. I'm pretty sure this happened in the past, and Orion fixed it.

When I try the same thing with LDView 4.4 Beta 1, it says, "Error downloading update list." I believe that the reason it doesn't crash in 4.4 Beta 1 is because the last time this happened, I implemented a fix, but that fix has not made it into an official release yet.


Hmm. The site is supposed to exclude LDView from https but there might be something wired going on there. I'll have a look.
Reply
RE: LDView Crash on Library Update
#4
(2020-09-04, 21:11)Orion Pobursky Wrote: Hmm. The site is supposed to exclude LDView from https but there might be something wired going on there. I'll have a look.


I just tested in a debugger, and the response to my request is a permanent redirect to https. My initial request goes to here:

Code:
http://www.ldraw.org/cgi-bin/ptreleases.cgi?output=TAB&fields=type-format-date-url-size


The User-Agent for my test (running on a Mac) is:

Code:
LDView/4.4 Beta 1 (Mac OSX; [email protected]; https://github.com/tcobbs/ldview)


The response to my http request is this:

Code:
HTTP/1.1 301 Moved Permanently\r\nDate: Sun, 06 Sep 2020 19:20:31 GMT\r\nServer: Apache\r\nLocation: https://www.ldraw.org/cgi-bin/ptreleases.cgi?output=TAB&fields=type-format-date-url-size\r\nCache-Control: max-age=600\r\nExpires: Sun, 06 Sep 2020 19:30:31 GMT\r\nContent-Length: 300\r\nConnection: close\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>301 Moved Permanently</title>\n</head><body>\n<h1>Moved Permanently</h1>\n<p>The document has moved <a href=\"https://www.ldraw.org/cgi-bin/ptreleases.cgi?output=TAB&amp;fields=type-format-date-url-size\">here</a>.</p>\n</body></html>\n@~\x03

So it looks like you're no longer allowing requests from the LDView user-agent to download via http. Please note that LDView does support redirection (up to 3 levels deep, I think), but since the redirect goes to https, it fails.
Reply
RE: LDView Crash on Library Update
#5
There was a problem with the auto-redirect code. I've fixed that. I spoofed my user-agent to the one listed above and I'm able to access without a https redirect.

Additionally, I excluded /cgi-bin/ptreleases.cgi from https redirect. This is also tested.
Reply
RE: LDView Crash on Library Update
#6
(2020-09-06, 22:15)Orion Pobursky Wrote: There was a problem with the auto-redirect code. I've fixed that. I spoofed my user-agent to the one listed above and I'm able to access without a https redirect.

Additionally, I excluded /cgi-bin/ptreleases.cgi from https redirect. This is also tested.

Thanks. I can confirm that LDView can once again scan for library updates. Note that, in addition to ptreleases.cgi, it also downloads zips via http (either complete.zip, or one or more update zips). Since my LDView is already up to date, I cannot easily confirm that the zip downloading is working.
Reply
RE: LDView Crash on Library Update
#7
(2020-09-07, 0:57)Travis Cobbs Wrote: Thanks. I can confirm that LDView can once again scan for library updates. Note that, in addition to ptreleases.cgi, it also downloads zips via http (either complete.zip, or one or more update zips). Since my LDView is already up to date, I cannot easily confirm that the zip downloading is working.

Anything in the /library tree that ends in dat, png, ldr, or zip is also excluded. That shouldn't really matter for LDView since it's excluded entirely on it user agent.
Reply
RE: LDView Crash on Library Update
#8
(2020-09-07, 0:57)Travis Cobbs Wrote: Thanks. I can confirm that LDView can once again scan for library updates. Note that, in addition to ptreleases.cgi, it also downloads zips via http (either complete.zip, or one or more update zips). Since my LDView is already up to date, I cannot easily confirm that the zip downloading is working.
Good news, I had problems with that useful feature for some time Wink
Reply
RE: LDView Crash on Library Update
#9
(2020-09-07, 1:39)Orion Pobursky Wrote: Anything in the /library tree that ends in dat, png, ldr, or zip is also excluded. That shouldn't really matter for LDView since it's excluded entirely on it user agent.

Unrelated question that I came up with while investigating this. Why does ptrelease.cgi still list exe entries (ARJ), when they haven't be valid since something like 2005? Every update has a zip and exe version, but all the exe versions starting with lcad0801.exe are two bytes long. Furthermore the complete.exe is about one tenth the size of complete.zip, and it is listed with a date of 2006-07-13.

If you don't know what I'm talking about, just look at this:

http://www.ldraw.org/cgi-bin/ptreleases....e-url-size
Reply
RE: LDView Crash on Library Update
#10
Thank you everyone.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)