Bug 6592 - Error results when Midori is used to open html file from Dolphin
Summary: Error results when Midori is used to open html file from Dolphin
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: mga2-32-OK mga2-64-OK
Keywords: PATCH, UPSTREAM, validated_update
Depends on:
Blocks: 6295
  Show dependency treegraph
 
Reported: 2012-06-26 22:04 CEST by R Topics
Modified: 2012-06-30 20:15 CEST (History)
4 users (show)

See Also:
Source RPM: midori-0.4.4-1.mga2.src.rpm
CVE:
Status comment:


Attachments

Description R Topics 2012-06-26 22:04:29 CEST
Description of problem:

Trying to open a html document file with Midori by right mouse clicking the file in Dolphin,selecting the Open With option and then selecting Midori as the application to use results in a error condition instead of opening the file.

It appears Midori is pre-pending the file path for opening the file with the user's Documents directory.  For example using the xguest user id and then trying to open the file /usr/share/doc/mageia-release-common/release-notes.html with Midori from Dolphin causes the following to be in the url field in Midori:


 file:///home/xguest/Documents//usr/share/doc/mageia-release-common/release-notes.html

with the following error message:

The page 'file:///home/xguest/Documents//usr/share/doc/mageia-release-common/release-notes.html' couldn't be loaded.

Error opening file: No such file or directory


Firefox and Chromium open the file from Dolphin without problems, so it appears to be just a problem with Midori.


Version-Release number of selected component (if applicable):

package: midori-0.4.4-1.mga2


How reproducible: every time

Steps to Reproduce:
1. Install Midori
2. Use Dolphin to navigate to /usr/share/doc/mageia-release-common directory
3. Right mouse click file release-notes.html
4. Select Open With from the context menu
5. Select Midori as the application to use to open the file
6. Error will be generated
Comment 1 Manuel Hiebel 2012-06-26 22:44:38 CEST
thanks for report, it's an upstream bug resolved: https://bugs.launchpad.net/midori/+bug/963899

Keywords: (none) => PATCH, UPSTREAM
CC: (none) => fundawang, jani.valimaa

Comment 2 Jani Välimaa 2012-06-27 08:42:48 CEST
Added patch from upstream git [1] which should fix this issue. Please test the new release [2] from core/updates_testing. Please note that the new release is also build against gtk2, see bug 6295.


[1] http://git.xfce.org/apps/midori/commit/?id=76be3b9aead3f8a5cc915a516ed78d051a804b0a

[2] midori-0.4.4-1.2.mga2
Jani Välimaa 2012-06-27 08:48:43 CEST

Assignee: bugsquad => qa-bugs

Comment 3 claire robinson 2012-06-27 10:09:48 CEST
Testing x86_64

Before
------
It actually adds /home/user/Dropbox/Documents// here

After
-----
installing midori-0.4.4-1.2.mga2.x86_64.rpm from /var/cache/urpmi/rpms
It downloads the file now, rather than opening in the browser. Clicking open opens in a text editor. That is likely just a setting though.

Testing complete x86_64

Hardware: i586 => All
Whiteboard: (none) => mga2-64-OK

Comment 4 R Topics 2012-06-27 21:10:40 CEST
Tested the new release, the patch works for me,  now able to open html files from Dolphin with Midori.

Thank you for the quick response to this bug.
Comment 5 Manuel Hiebel 2012-06-27 21:34:35 CEST
(In reply to comment #4)
> Tested the new release, the patch works for me,  now able to open html files
> from Dolphin with Midori.
> 
> Thank you for the quick response to this bug.

Since you are on i586, we can consider this updates as validated, one day \o/.



Suggested Advisory:
-------------
Updated midori add a patch to resolve errors when opening a local html file.
Additionally, it was also build against gtk2 instead gtk3 which was the case previously.

https://bugs.mageia.org/show_bug.cgi?id=6295
https://bugs.mageia.org/show_bug.cgi?id=6592
-------------

SRPM: midori-0.4.4-1.2.mga2.src.rpm

Could sysadmin please push from core/updates_testing to core/updates

Thankyou!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Blocks: (none) => 6295
Whiteboard: mga2-64-OK => mga2-32-OK mga2-64-OK

Comment 6 Thomas Backlund 2012-06-30 20:15:28 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0095

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.