Issue 81231 - System file-picker can't be used
Summary: System file-picker can't be used
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 680m226
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.3.1
Assignee: thorsten.martens
QA Contact: issues@framework
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2007-09-03 15:22 UTC by thorsten.martens
Modified: 2009-04-30 11:13 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch (783 bytes, text/plain)
2007-09-04 13:59 UTC, andreas.schluens
no flags Details
new patch for unix file systems (1009 bytes, patch)
2007-09-04 14:12 UTC, eric.bachard
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description thorsten.martens 2007-09-03 15:22:30 UTC
Only the own file-picker is shown, no matter if the appropiate checkbox on
tools/options/general is checked or not. Reproducible in a m226 or 227 build,
but OK in OOG !
Comment 1 thorsten.martens 2007-09-03 15:24:34 UTC
.
Comment 2 eric.bachard 2007-09-04 12:57:24 UTC
Issue confirmed in m226, m227 on Mac OS X Aqua, m225 is ok.

Big regression:  blocker for OpenOffice.org Aqua, because Mac users will kill us if we don't have a working 
native FilePicker

Raising priority for P2 


Comment 3 eric.bachard 2007-09-04 12:57:48 UTC
+ me on CC
Comment 4 andreas.schluens 2007-09-04 13:11:52 UTC
as->ericb: .... yes it's a regression ... but not a show stopper .-)
Because it does not affect the real OOo 2.3. code line (means OOG branch!)
So currently only the next minor OOo 2.4 will be broken (which wont be released
now. First 2.3. will come).

BTW: The fix is very easy. There was a double registration for the generic file
picker service.
And UNO cant guarantee right handling if there exists ambigous registrations. So
please have also a look into your own aqua file picker registration. If your
picker will be registered for "com.sun.star.ui.dialogs.FilePicker" its wrong and
will trigger the same type of issue.
Comment 5 eric.bachard 2007-09-04 13:22:03 UTC
ericb->as 

Ok. The problem we have is we have choosen to provide one milestone from 2.4 branch as alpha during 
OOocon for Aqua version (we were too late for 2.3 branch)

For that, we have aquavclcarbonfixes cws to be tested on several platforms.

Today or tomorrow, this cws will be set as ready for QA ( 95% of the code review is already done)
And if you want we can add the fix inside.

What do you think ?

BTW: hdu told me Windows version is affected too. 
Comment 6 eric.bachard 2007-09-04 13:37:20 UTC
ericb->as

Reading fpicker/source/aqua/fps-aqua-ucd.txt the AquaFilePicker is registered as 
com.sun.star.ui.dialogs.AquaFilePicker , only once.

Can you tell me more about the double registration issue, and the code who caused the issue ? 

I'd like to understand what happens for us. Thanks in advance :)

Comment 7 andreas.schluens 2007-09-04 13:47:36 UTC
as->ericb: Double registration means ... registration for the same generic(!)
file picker service name. Normaly every file picker implementation should be
registered for ONE implementation name and ONE service. And normaly the real
picker should be created at runtime by using it's implementation name - because
such implementation name is unique by definition. But unfortunately the current
implementation uses different uno service names to distinguish between those
picker implementations. Thats imho wrong. Anyway ...
Currently you have to make sure your implementation wont be registered for the
mentioned service name - that's it. Might be we will refactor this next time.
Currently there is a cws hosted by me (named "as6") where I've already made some
file picker changes. May be I can do that on this cws also ...
BTW: Please have a look on issue i78854. I will send you a child task next time
for these .-)

Another question ... I will attach a patch which fix this issue here. You said
there is already a cws hosted by you. Would be nice if you can apply these patch
there and bring the fix into the 2.4. code line :-)
Comment 8 andreas.schluens 2007-09-04 13:59:36 UTC
Created attachment 47952 [details]
patch
Comment 9 eric.bachard 2007-09-04 14:11:39 UTC
ericb->as

Thank you very much. I'll start a build in 2 minutes, and I'll keep you informed if your patch helps.

+ I'll attach a new patch with DOS endlines and unix directories separator
Comment 10 eric.bachard 2007-09-04 14:12:47 UTC
Created attachment 47953 [details]
new patch for unix file systems
Comment 11 eric.bachard 2007-09-04 14:14:59 UTC
ericb->as

Thanks for all the explanations !

When as6 will be ready for QA, I'd like we test it too on Mac OS X. Just ask me, and I'll do a build

Build in progress (m227)
Comment 12 eric.bachard 2007-09-04 17:42:51 UTC
ericb->as

The fix works fine. Thank you very much :-)

Do you see any objection if I commit the change in aquavclcarbonfixes ?  (I'll
create another issue )

+ CC for Florian Heckl who wrote the main part of the Aqua File Picker
Comment 13 eric.bachard 2007-09-04 17:43:18 UTC
Reset issue to P3
Comment 14 andreas.schluens 2007-09-05 05:58:45 UTC
as->ericb: Please dont file a new issue for these. Instead you can add THESE
task here to your cws and check in the fix. Right ?
Comment 15 eric.bachard 2007-09-05 08:28:58 UTC
ericb->as

Thank you

I'll add the issue to aquavclcarbonfixes, and will QA it asap ( will probably be
ready for QA today )

hdu proposed me to verify the fix works on Windows too.


Comment 16 eric.bachard 2007-09-05 08:36:50 UTC
Change commited, and issue fixed in aquavclcarbonfixes
Comment 17 andreas.schluens 2007-09-05 09:19:15 UTC
as->ericb, hdu: Thanks :-)
Comment 18 hdu@apache.org 2007-09-05 13:40:03 UTC
Verified the fix in CWS aquavclcarbonfixes on windows and unix-gtk.
Comment 19 hdu@apache.org 2007-09-05 14:12:28 UTC
Also verified in CWS aquavclcarbonfixes on unxmac.
Comment 20 hdu@apache.org 2007-09-12 14:24:17 UTC
@AS: we integrated the fix in CWS aquavclcarbonfixes, which has a OOo 2.4 target. Since QA gave this 
issue an earlier target I suggest to get the tested fix into a CWS with a matching target too.
Comment 21 eric.bachard 2007-09-13 16:02:33 UTC
reset target to 2.4, but IMHO, the issue has to be backported into 2.3.1
Comment 22 andreas.schluens 2007-09-14 11:10:33 UTC
Task will be also fixed on cws fwk75 with target 2.3.1.
Comment 23 andreas.schluens 2007-09-18 13:08:34 UTC
as->tm: please verify these task on cws "fwk75" again. Because it's a OOo 2.3.1
task it has to be fixed not only inside cws aquavclcarbonfixes .-)  THX.
Comment 24 andreas.schluens 2007-09-18 13:09:03 UTC
.
Comment 25 thorsten.martens 2009-04-30 11:13:06 UTC
closed