Hidden files are saved as non-hidden files after downloading

Bug #576072 reported by Andreas Brandt
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: ubuntuone-client

Lucid 64bit

situation:
I'm at the "files" tab in the web interface of ubuntu one. There are several hidden files (.bashrc, .bashaliases, etc).
Now i left-click one of said files and select "save file". I select the target directory. I am asked if i want to overwrite the existing .bashrc which i confirm.

expected behaviour:
The old .bashrc should be deleted and replaced by the new .bashrc.

what happened instead:
The old .bashrc was deleted and the new .bashrc was renamed to bashrc and saved so i had a bashrc instead of .bashrc. This happened with every hidden file.

ubuntuone-client:
  Installed: 1.2.1-0ubuntu1
  Candidate: 1.2.1-0ubuntu2
  Version table:
     1.2.1-0ubuntu2 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid-updates/main Packages
 *** 1.2.1-0ubuntu1 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
FirefoxPackages:
 firefox 3.6.3+nobinonly-0ubuntu4
 firefox-gnome-support 3.6.3+nobinonly-0ubuntu4
 firefox-branding 3.6.3+nobinonly-0ubuntu4
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
Package: firefox 3.6.3+nobinonly-0ubuntu4
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Tags: lucid
Uname: Linux 2.6.32-22-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Mitch Towner (kermiac) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I can confirm this behaviour using firefox & chromium. However, opera downloads & saves the file correctly. As such, this is most likely a bug in the browser as opposed to a bug in the ubuntuone webui.

I store .bashrc in my ubuntu one directory. In the webui & my ubuntu one directory it is stored as ".bashrc". When this file is downloaded from the webui using firefox or chromium it is saved as "bashrc". See http://imgbin.org/images/1592.png (firefox) & http://imgbin.org/images/1594.png (chromium).

When using opera to download the same .bashrc, it is saved correctly - See http://imgbin.org/images/1593.png.

Can you please confirm which browser you are using to download these files? Also, please try using opera to download these files to confirm that works as expected. I will re-assign this bug report to the appropriate package if you can confirm my findings.

Thanks in advance!

Changed in ubuntuone-client (Ubuntu):
status: New → Incomplete
Revision history for this message
Andreas Brandt (andreasbrandt) wrote :

You are 100% right. I used Firefox 3.6.3 (standard lucid install) where it didn't work and just tried Opera where everything worked as expected.

Revision history for this message
John Vivirito (gnomefreak) wrote :

What version of Firefox and chrome are you using? I will test with the latest daily later today/tomorrow to see if 3.6 and 3.7 dailies work or not on my system

Revision history for this message
John Vivirito (gnomefreak) wrote :

Conehead please update ubuntuone-client to latest version and also update browers to latest version in your repos.
can you also please post the output of the following commands:
apt-cache policy firefox chromium-browser ubuntuone-client opera
lsb_release -a
uname -a

Revision history for this message
John Vivirito (gnomefreak) wrote :

also others that can reproduce it. :)

Revision history for this message
Jānis Kangarooo (kangarooo) wrote :

I tryd this files in FF 3.6.3 all is like reported. tha i can confirm for FF 3.6.3
In http://www.mediafire.com/?njnywyh5jox saving file with left click it opens with save/open dialog and is already asking about saving without (.) and that it does- saves without (.)
right click save as saving with save as dialog asks to save WITH (.) but doesnt do that.
even worse- saving with same name existing file there i have in system and i saved with same name and asked do i want to replace i put yes BUT original file is deleted and file is still saved without (.)

Testing with chromium-browser is something new. Clicking saves also without (.) but clicking save as asks to save without (.) but if renamed to .name then save .name WOW something new. :)

apt-cache policy firefox chromium-browser ubuntuone-client opera google-chrome
(i dont know why google-chrome doesnt show info but its installed)
firefox:
  Installed: 3.6.3+nobinonly-0ubuntu4
  Candidate: 3.6.3+nobinonly-0ubuntu4
  Version table:
 *** 3.6.3+nobinonly-0ubuntu4 0
        500 http://lv.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
chromium-browser:
  Installed: 5.0.342.9~r43360-0ubuntu2
  Candidate: 5.0.342.9~r43360-0ubuntu2
  Version table:
 *** 5.0.342.9~r43360-0ubuntu2 0
        500 http://lv.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status
ubuntuone-client:
  Installed: (none)
  Candidate: 1.2.1-0ubuntu2
  Version table:
     1.2.1-0ubuntu2 0
        500 http://lv.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
     1.2.1-0ubuntu1 0
        500 http://lv.archive.ubuntu.com/ubuntu/ lucid/main Packages
opera:
  Installed: (none)
  Candidate: (none)
  Version table:
google-chrome:
  Installed: (none)
  Candidate: (none)
  Version table:

lsb_release -a
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

uname -a
Linux kng-megatron 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux

Revision history for this message
Mitch Towner (kermiac) wrote :

To verify that this is not a ubuntu one specific issue I have uploaded a .bashrc to 3 random free file hosting sites.

http://www.mediafire.com/?njnywyh5jox
http://www.filedropper.com/bashrc_1
http://rapidshare.com/files/385623472/.bashrc.html

When downloading these files with Firefox or Chromium, the file is saved as "bashrc".
When downloading these same files with Opera, the file is saved correctly as ".bashrc"

The symptoms do not change if I change the directory where the file is saved

In both firefox & chromium the "save as" dialogue shows ".bashrc" but the file is actually saved as "bashrc".
If the file ".bashrc" already exists, the original ".bashrc" is deleted & the downloaded file is saved as "bashrc". if the file ".bashrc" does not exist in the directory you are downloading it to the file is still saved as "bashrc" instead of ".bashrc".

$apt-cache policy firefox chromium-browser ubuntuone-client opera
firefox:
  Installed: 3.6.3+nobinonly-0ubuntu4
  Candidate: 3.6.3+nobinonly-0ubuntu4
  Version table:
 *** 3.6.3+nobinonly-0ubuntu4 0
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
chromium-browser:
  Installed: 6.0.400.0~svn20100510r46805-0ubuntu1~ucd1
  Candidate: 6.0.400.0~svn20100510r46805-0ubuntu1~ucd1
  Version table:
 *** 6.0.400.0~svn20100510r46805-0ubuntu1~ucd1 0
        500 http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     5.0.342.9~r43360-0ubuntu2 0
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/universe Packages
ubuntuone-client:
  Installed: 1.2.1-0ubuntu2
  Candidate: 1.2.1-0ubuntu2
  Version table:
 *** 1.2.1-0ubuntu2 0
        500 http://au.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/main Packages
opera:
  Installed: 10.10.4742.gcc4.qt3

$ apt-cache policy xulrunner-1.9.2
xulrunner-1.9.2:
  Installed: 1.9.2.3+nobinonly-0ubuntu2
  Candidate: 1.9.2.3+nobinonly-0ubuntu2
  Version table:
 *** 1.9.2.3+nobinonly-0ubuntu2 0
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

xulrunner-1.9.1 is not installed in Lucid

$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

$uname -a
Linux kermiac-netbook 2.6.32-22-generic-pae #33-Ubuntu SMP Wed Apr 28 14:57:29 UTC 2010 i686 GNU/Linux

Revision history for this message
John Vivirito (gnomefreak) wrote :

sorry forgot to addd a few things i need this info as well:
apt-cache policy firefox-gnome-support python-ubuntuone-client ubuntuone-client-gnome python-ubuntuone-storageprotocol

If you are not using gnome please let me know.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Marked as confirmed since more than reporter is seeing this.

affects: ubuntuone-client (Ubuntu) → firefox (Ubuntu)
Changed in firefox (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

Can you please try to reproduce this bug using a new profile. How to test this can be found at:
https://wiki.ubuntu.com/MozillaTeam/Bugs#Try%20with%20a%20new%20profile

also if you can please list all extensions/add-ons that you have installed in both browsers

Revision history for this message
Mitch Towner (kermiac) wrote : apport information

Architecture: i386
DistroRelease: Ubuntu 10.04
FirefoxPackages:
 firefox 3.6.3+nobinonly-0ubuntu4
 firefox-gnome-support 3.6.3+nobinonly-0ubuntu4
 firefox-branding 3.6.3+nobinonly-0ubuntu4
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100416)
Package: firefox 3.6.3+nobinonly-0ubuntu4
PackageArchitecture: i386
ProcEnviron:
 LANG=en_AU.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic-pae 2.6.32.11+drm33.2
Tags: lucid
Uname: Linux 2.6.32-22-generic-pae i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

tags: added: apport-collected
Revision history for this message
Mitch Towner (kermiac) wrote : Dependencies.txt

apport information

Revision history for this message
Mitch Towner (kermiac) wrote : ExtensionSummary.txt

apport information

Revision history for this message
Mitch Towner (kermiac) wrote : default_profile_pluginreg.dat.txt

apport information

Revision history for this message
Mitch Towner (kermiac) wrote : profile_TEST_pluginreg.dat.txt

apport information

Revision history for this message
Mitch Towner (kermiac) wrote : profiles.ini.txt

apport information

Revision history for this message
Mitch Towner (kermiac) wrote : Re: ubuntuone hidden files are stored as non-hidden after downloading

apt-cache policy firefox-gnome-support
firefox-gnome-support:
  Installed: 3.6.3+nobinonly-0ubuntu4
  Candidate: 3.6.3+nobinonly-0ubuntu4
  Version table:
 *** 3.6.3+nobinonly-0ubuntu4 0
        500 http://au.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

I am also able to reproduce this bug with a new firefox profile.

Revision history for this message
John Vivirito (gnomefreak) wrote :
Download full text (3.3 KiB)

Ok i got to testing this with daily PPA firefox i will test with 3.7 but i doubt it will have a difference.

gnomefreak@Development:~$ apt-cache policy firefox firefox-gnome-support xulrunner-1.9.1 chromium-browser firefox-3.7 firefox-3.7-gnome-support xulrunner-1.9.2
firefox:
  Installed: 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Candidate: 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Package pin: 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1 400
        500 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     3.6.3+nobinonly-0ubuntu4 400
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/main Packages
firefox-gnome-support:
  Installed: 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Candidate: 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Package pin: 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.6.5~hg20100506r34169+nobinonly-0ubuntu1~umd1 400
        500 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     3.6.3+nobinonly-0ubuntu4 400
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/main Packages
xulrunner-1.9.1:
  Installed: 1.9.1.11~hg20100506r26921+nobinonly-0ubuntu1~umd1
  Candidate: 1.9.1.11~hg20100506r26921+nobinonly-0ubuntu1~umd1
  Version table:
 *** 1.9.1.11~hg20100506r26921+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
chromium-browser:
  Installed: 6.0.400.0~svn20100510r46805-0ubuntu1~ucd1
  Candidate: 6.0.400.0~svn20100510r46805-0ubuntu1~ucd1
  Version table:
 *** 6.0.400.0~svn20100510r46805-0ubuntu1~ucd1 0
        500 http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     5.0.342.9~r43360-0ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe Packages
firefox-3.7:
  Installed: 3.7~a5~hg20100506r41949+nobinonly-0ubuntu1~umd1
  Candidate: 3.7~a5~hg20100506r41949+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.7~a5~hg20100506r41949+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
firefox-3.7-gnome-support:
  Installed: 3.7~a5~hg20100506r41949+nobinonly-0ubuntu1~umd1
  Candidate: 3.7~a5~hg20100506r41949+nobinonly-0ubuntu1~umd1
  Version table:
 *** 3.7~a5~hg20100506r41949+nobinonly-0ubuntu1~umd1 0
        500 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
xulrunner-1.9.2:
  Installed: 1.9.2.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Candidate: 1.9.2.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Package pin: 1.9.2.5~hg20100506r34169+nobinonly-0ubuntu1~umd1
  Version table:
 *** 1.9.2.5~hg20100506r34169+nobinonly-0ubuntu1~umd1 400
        500 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     1.9.2.3+nobinonly-0ubuntu2 400
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/...

Read more...

Mitch Towner (kermiac)
summary: - ubuntuone hidden files are stored as non-hidden after downloading
+ Hidden files are saved as non-hidden files after downloading
Revision history for this message
John Vivirito (gnomefreak) wrote :

gnomefreak@Development:~$ policy seamonkey-browser seamonkey-gnome-support epiphany-browser
seamonkey-browser:
  Installed: 2.0.4+nobinonly-0ubuntu1
  Candidate: 2.0.4+nobinonly-0ubuntu1
  Version table:
 *** 2.0.4+nobinonly-0ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe Packages
        100 /var/lib/dpkg/status
     2.0.4+nobinonly-0ubuntu1~lucid~ppa3 0
        500 http://ppa.launchpad.net/micahg/mozilla-test/ubuntu/ lucid/main Packages
seamonkey-gnome-support:
  Installed: 2.0.4+nobinonly-0ubuntu1
  Candidate: 2.0.4+nobinonly-0ubuntu1
  Version table:
 *** 2.0.4+nobinonly-0ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe Packages
        100 /var/lib/dpkg/status
     2.0.4+nobinonly-0ubuntu1~lucid~ppa3 0
        500 http://ppa.launchpad.net/micahg/mozilla-test/ubuntu/ lucid/main Packages
epiphany-browser:
  Installed: 2.30.2-1ubuntu1
  Candidate: 2.30.2-1ubuntu1
  Version table:
 *** 2.30.2-1ubuntu1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ maverick/universe Packages
        100 /var/lib/dpkg/status

I'm leaning towards this being an xulrunner bug but I would like a confirm on its being xul not browser.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Using seamonkey firefox-3.6 firefox-3.7 seamonkey-browser all ask to save as .bashrc but save as bashrc
However Epiphany and Chromium ask to save as a normal file. Chromium uses bashrc(#) and Epiphany uses just a generic name (just random letters)

Here is a list of bash files i have after testing. I did not save using Epiphany or Chromium due to the naming it wanted to save as.

gnomefreak@Development:~$ ls -a |grep bash
.bash_history
.bash_logout
.bashrc.test
bashrc
bashrc(2)
bashrc(3)

the .bashrc.test is the orig. .bashrc file

Not sure on this but if Chromium and Epiphany use webkit than it can be an xulrunner bug.
It is the download dialog section of the package it asks to download as .bashrc but once the download progress box opens it is saved as bashrc. changing it does save it as normal.
It seems that using Ubuntuone in browser to download (click more->download file)
It does the same thing.

Revision history for this message
Andreas Brandt (andreasbrandt) wrote :

as requested:

apt-cache policy firefox chromium-browser ubuntuone-client opera:
firefox:
  Installed: 3.6.3+nobinonly-0ubuntu4
  Candidate: 3.6.3+nobinonly-0ubuntu4
  Version table:
 *** 3.6.3+nobinonly-0ubuntu4 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
chromium-browser:
  Installed: (none)
  Candidate: 5.0.342.9~r43360-0ubuntu2
  Version table:
     5.0.342.9~r43360-0ubuntu2 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/universe Packages
ubuntuone-client:
  Installed: 1.2.1-0ubuntu2
  Candidate: 1.2.1-0ubuntu2
  Version table:
 *** 1.2.1-0ubuntu2 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
opera:
  Installed: 10.10.4742.gcc4.qt3
  Candidate: 10.10.4742.gcc4.qt3
  Version table:
 *** 10.10.4742.gcc4.qt3 0
        500 http://deb.opera.com/opera/ stable/non-free Packages
        100 /var/lib/dpkg/status

lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

uname -a:
Linux ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux

apt-cache policy firefox-gnome-support python-ubuntuone-client ubuntuone-client-gnome python-ubuntuone-storageprotocol:
firefox-gnome-support:
  Installed: 3.6.3+nobinonly-0ubuntu4
  Candidate: 3.6.3+nobinonly-0ubuntu4
  Version table:
 *** 3.6.3+nobinonly-0ubuntu4 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
python-ubuntuone-client:
  Installed: 1.2.1-0ubuntu2
  Candidate: 1.2.1-0ubuntu2
  Version table:
 *** 1.2.1-0ubuntu2 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
ubuntuone-client-gnome:
  Installed: 1.2.1-0ubuntu2
  Candidate: 1.2.1-0ubuntu2
  Version table:
 *** 1.2.1-0ubuntu2 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
python-ubuntuone-storageprotocol:
  Installed: 1.2.0-0ubuntu1
  Candidate: 1.2.0-0ubuntu1
  Version table:
 *** 1.2.0-0ubuntu1 0
        500 http://mirror.informatik.uni-mannheim.de/pub/linux/distributions/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

description: updated
Revision history for this message
Andreas Brandt (andreasbrandt) wrote : Dependencies.txt

apport information

Revision history for this message
Andreas Brandt (andreasbrandt) wrote : ExtensionSummary.txt

apport information

Revision history for this message
Andreas Brandt (andreasbrandt) wrote : profile_default_pluginreg.dat.txt

apport information

Revision history for this message
Andreas Brandt (andreasbrandt) wrote : profiles.ini.txt

apport information

Mitch Towner (kermiac)
Changed in firefox (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.