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/09/19 21:45:06 UTC

[Bug 121053] New: Office FilePicker doesn't allow socket selection

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

          Priority: P3
            Bug ID: 121053
          Assignee: ooo-issues@incubator.apache.org
           Summary: Office FilePicker doesn't allow socket selection
          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

Created attachment 79574
  --> https://issues.apache.org/ooo/attachment.cgi?id=79574&action=edit
Screen shot showing the Error box

When you try to use the office FilePicker to select a socket, the FilePicker
shows an error box telling that the file doesn't exist or is corrupt.

Expected behavior: the socket file exists, the FilePicker should allow to
select it.

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

[Bug 121053] Office FilePicker doesn't allow socket selection

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

yecril71pl <gi...@stegny.2a.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giecrilj@stegny.2a.pl

--- Comment #3 from yecril71pl <gi...@stegny.2a.pl> ---
I get the KDE4 File Picker both times and it allows me to select the socket all
right.

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

[Bug 121053] Office FilePicker doesn't allow socket selection

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

--- Comment #4 from Ariel Constenla-Haile <ar...@apache.org> ---
(In reply to comment #3)
> I get the KDE4 File Picker both times and it allows me to select the socket
> all right.

Right, both KDE and GTK file pickers allow socket selection, it's only the
office file picker (Tools - Options - OOo - General - Use OOo dialogs).

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

[Bug 121053] Office FilePicker doesn't allow socket selection

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

--- Comment #1 from Ariel Constenla-Haile <ar...@apache.org> ---
Created attachment 79575
  --> https://issues.apache.org/ooo/attachment.cgi?id=79575&action=edit
Text document with AOO Basic macro

The macro executes the Office FilePicker to test socket selection.
Then it tries with the Gtk FilePicker

This test is valid for Linux only: it searches for the MySQL server socket in
the default directories.
I'm not sure you can find a socket on Windows by browsing with a FilePicker.

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

[Bug 121053] Office FilePicker doesn't allow socket selection

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

--- Comment #2 from Ariel Constenla-Haile <ar...@apache.org> ---
The reason for this bug is that, for Office FilePicker, the socket doesn't
exist, see 

bExists = pThis->m_aContent.is( aFileObj.GetMainURL( INetURLObject::NO_DECODE )
);

in
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/fpicker/source/office/iodlg.cxx?revision=1198248&view=markup#l1289

The SmartContent (fpicker/source/office/fpsmartcontent.hxx|cxx) is not *that*
smart: a file "is" only if it is a "document" or a "folder".

But it's not its fault; here the one to blame is the File Content Provider: it
doesn't take into account sockets (while the underlying code in osl does).
(ucb/source/ucp/file/ specially shell.hxx|cxx)

This propagates to the SimpleFileAccess API: a socket doesn't exist according
to XSimpleFileAccess::exists().

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

[Bug 121053] Office FilePicker doesn't allow socket selection

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |116286

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