You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/10/12 09:18:39 UTC

[Bug 121201] New: Extensions Update seems broken

https://issues.apache.org/ooo/show_bug.cgi?id=121201

          Priority: P3
            Bug ID: 121201
          Assignee: ooo-issues@incubator.apache.org
           Summary: Extensions Update seems broken
          Severity: normal
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: arielch@apache.org
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.1
         Component: code
           Product: framework

The Extensions Update seems to be broken, I couldn't detect a behavior pattern,
because it does not fail always, but in same cases it return a "Not found!"
error while trying to download the update.

You can try installing preview version 1.0.2 of the MySQL Driver from
http://code.google.com/a/apache-extras.org/p/aoo-my-sdbc/downloads/list?can=1&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount

The Extension Manager will try to upgrade the extension to version 1.1.0, but
will fail downloading the extension:

"Error while downloading extension MySQL Connector for Apache OpenOffice. The
error message is: Could not download
http://aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-linux-x86-64.oxt.
Not found!
The extension will not be installed.

Error while installing extension MySQL Connector for Apache OpenOffice. The
extension will not be installed."


Setting a break point in dp_gui::UpdateInstallDialog::Thread::download()

around 

::ucbhelper::Content sourceContent;    
dp_misc::create_ucb_content( &sourceContent, sDownloadURL, m_updateCmdEnv.get()
);

step into dp_misc::create_ucb_content()
There you see that it re throws due to ucbContent.isFolder() throwing an
exception.

http_dav_ucp::SerfSession::HEAD throws an exception due to failure in
http_dav_ucp::SerfRequestProcessor::processHead() for header name "IsFolder";
note that outSerfStatus is 20014 (an internal error?), not NOT_FOUND.

I tried changing the code on dp_misc::create_ucb_content() from isFolder() to
isDocument() and it also fails.

Backtrace:
#0 http_dav_ucp::SerfSession::HandleError() at
/build/aoo/src/playground/trunk/main/ucb/source/ucp/webdav/SerfSession.cxx:1371
#1 http_dav_ucp::SerfSession::HEAD() at
/build/aoo/src/playground/trunk/main/ucb/source/ucp/webdav/SerfSession.cxx:690
#2 http_dav_ucp::DAVResourceAccess::HEAD() at
/build/aoo/src/playground/trunk/main/ucb/source/ucp/webdav/DAVResourceAccess.cxx:329
#3 http_dav_ucp::Content::getPropertyValues() at
/build/aoo/src/playground/trunk/main/ucb/source/ucp/webdav/webdavcontent.cxx:1348
#4 http_dav_ucp::Content::execute() at
/build/aoo/src/playground/trunk/main/ucb/source/ucp/webdav/webdavcontent.cxx:428
#5 ucbhelper::Content_Impl::executeCommand() at
/build/aoo/src/playground/trunk/main/ucbhelper/source/client/content.cxx:1866
#6 ucbhelper::Content::getPropertyValuesInterface() at
/build/aoo/src/playground/trunk/main/ucbhelper/source/client/content.cxx:679
#7 ucbhelper::Content::getPropertyValues() at
/build/aoo/src/playground/trunk/main/ucbhelper/source/client/content.cxx:616
#8 ucbhelper::Content::getPropertyValue() at
/build/aoo/src/playground/trunk/main/ucbhelper/source/client/content.cxx:566
#9 ucbhelper::Content::isDocument() at
/build/aoo/src/playground/trunk/main/ucbhelper/source/client/content.cxx:1614
#10 dp_misc::create_ucb_content() at
/build/aoo/src/playground/trunk/main/desktop/source/deployment/misc/dp_ucb.cxx:70
#11 dp_gui::UpdateInstallDialog::Thread::download() at
/build/aoo/src/playground/trunk/main/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx:621
#12 dp_gui::UpdateInstallDialog::Thread::downloadExtensions() at
/build/aoo/src/playground/trunk/main/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx:405
#13 dp_gui::UpdateInstallDialog::Thread::execute() at
/build/aoo/src/playground/trunk/main/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx:199
#14 dp_gui::Thread::run() at
/build/aoo/src/playground/trunk/main/desktop/source/deployment/gui/dp_gui_thread.cxx:66
#15 osl::threadFunc() at
/build/aoo/src/playground/trunk/main/solver/350/unxlngx6/inc/osl/thread.hxx:182
#16 osl_thread_start_Impl() at
/build/aoo/src/playground/trunk/main/sal/osl/unx/thread.c:265
#17 start_thread() at
/usr/src/debug/glibc-2.15-a316c1f/nptl/pthread_create.c:308
#18 clone() at
/usr/src/debug/glibc-2.15-a316c1f/sysdeps/unix/sysv/linux/x86_64/clone.S:114

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

hanya <ha...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hanya.runo@gmail.com

--- Comment #4 from hanya <ha...@gmail.com> ---
I wrote the following Python script to check HEAD request to 
aoo-my-sdbc.apache-extras.org.codespot.com: 

Result:
HEAD: www.openoffice.org/api/docs/common/ref/index-files/index-1.html:
200 OK
GET: www.openoffice.org/api/docs/common/ref/index-files/index-1.html:
200 OK
HEAD:
aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-linux-x86.oxt:
404 Not Found
GET:
aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-linux-x86.oxt:
200 OK

the server does not respond to HEAD request.

import httplib

def get(main, path):
    conn = httplib.HTTPConnection(main)
    conn.request("GET", path)
    r2 = conn.getresponse()
    print("GET: " + main + path + ":\n" + str(r2.status) + " " +
str(r2.reason))

def head(main, path):
    conn = httplib.HTTPConnection(main)
    conn.request("HEAD", path)
    res = conn.getresponse()
    print("HEAD: " + main + path + ":\n" + str(res.status) + " " +
str(res.reason))

s = "www.openoffice.org"
v = "/api/docs/common/ref/index-files/index-1.html"
head(s, v)
get(s, v)

u = "aoo-my-sdbc.apache-extras.org.codespot.com"
t = "/files/aoo-my-sdbc-1.1.0-linux-x86.oxt"
head(u, t)
get(u, t)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

--- Comment #6 from Ariel Constenla-Haile <ar...@apache.org> ---
Found http://code.google.com/p/support/issues/detail?id=660
support HTTP HEAD method for file download urls

The question now is if supporting HEAD is mandatory.
If not, the webdav ucp should not rely on it.

Something similar happens for webdav broken due to PROPFIND not supported on
the server.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |121202

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

jsc@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsc@apache.org

--- Comment #2 from jsc@apache.org ---
I can reproduce the update problem after I have installed version 1.0.2 from my
people test folder (installed via the file open dialog).

When I run the basic macro I can't reproduce a problem, bExists is false and I
think that is the expected value.

All my test are under MacOS.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

--- Comment #3 from Ariel Constenla-Haile <ar...@apache.org> ---
(In reply to comment #0)
> The Extensions Update seems to be broken, I couldn't detect a behavior
> pattern, because it does not fail always, but in same cases it return a "Not
> found!" error while trying to download the update.
> 
> You can try installing preview version 1.0.2 of the MySQL Driver from
> http://code.google.com/a/apache-extras.org/p/aoo-my-sdbc/downloads/
> list?can=1&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCoun
> t
> 
> The Extension Manager will try to upgrade the extension to version 1.1.0,
> but will fail downloading the extension:
> 
> "Error while downloading extension MySQL Connector for Apache OpenOffice.
> The error message is: Could not download
> http://aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-
> linux-x86-64.oxt. Not found!
> The extension will not be installed.
> 
> Error while installing extension MySQL Connector for Apache OpenOffice. The
> extension will not be installed."

I still get the same error after updating serf to 1.2.0
But testing with OOo 3.4.0 BETA (with neon), I get the same error.
May be related to the extension manager code, not to the webdav ucp.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] webdav ucp: failure if the server does not support HEAD requests

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
           Assignee|issues@openoffice.apache.or |arielch@apache.org
                   |g                           |
   Target Milestone|---                         |AOO 4.0

--- Comment #8 from Ariel Constenla-Haile <ar...@apache.org> ---
Fixed on trunk

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] webdav ucp: failure if the server does not support HEAD requests

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Extensions Update seems     |webdav ucp: failure if the
                   |broken                      |server does not support
                   |                            |HEAD requests

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

--- Comment #1 from Ariel Constenla-Haile <ar...@apache.org> ---
Sure related to this, the SimpleFileAccess service says that the extension
doesn't exist:

Sub Main
Dim oSFA
oSFA = CreateUnoService("com.sun.star.ucb.SimpleFileAccess")
Dim bExists as Boolean
bExists =
oSFA.isFolder(ConvertToURL("http://aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-linux-x86-64.oxt"))
End Sub

In this case, the ucb command "open" is failing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] webdav ucp: failure if the server does not support HEAD requests

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

--- Comment #7 from SVN Robot <sv...@dev.null.org> ---
"arielch" committed SVN revision 1460354 into trunk:
i121201 - Handle servers not supporting HEAD requests

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 121201] webdav ucp: failure if the server does not support HEAD requests

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

Bug 121201 depends on bug 121202, which changed state.

Bug 121202 Summary: webdav ucp seems broken
https://issues.apache.org/ooo/show_bug.cgi?id=121202

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are watching all bug changes.

[Bug 121201] Extensions Update seems broken

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=121201

--- Comment #5 from Ariel Constenla-Haile <ar...@apache.org> ---
(In reply to comment #4)
> I wrote the following Python script to check HEAD request to 
> aoo-my-sdbc.apache-extras.org.codespot.com: 

You are right:

[ariel@localhost ~]$ curl -i --head
http://aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-linux-x86.oxt
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Date: Mon, 18 Mar 2013 18:51:37 GMT
Server: codesite_downloads
Content-Length: 968
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN

while a partial GET is working:

[ariel@localhost ~]$ curl -i --get -H "Range: bytes=0-1"
http://aoo-my-sdbc.apache-extras.org.codespot.com/files/aoo-my-sdbc-1.1.0-linux-x86.oxt
HTTP/1.1 206 Partial Content
Content-Range: bytes 0-1/1549728
Content-Length: 2
Content-Type: application/zip; charset=binary
Content-Disposition: attachment; filename="aoo-my-sdbc-1.1.0-linux-x86.oxt"
Accept-Ranges: bytes
Date: Mon, 18 Mar 2013 18:52:34 GMT
Last-Modified: Thu, 11 Oct 2012 09:21:07 GMT
Expires: Mon, 25 Mar 2013 18:52:34 GMT
Cache-Control: public, max-age=604800
Server: DFE/largefile

-- 
You are receiving this mail because:
You are the assignee for the bug.