question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Firefox thinks files are named "",

See original GitHub issue

When manipulating certain files in firefox (either via right click or hotkeys, doesn’t seem to matter), cloudcmd seems to lose track of the files actual name. See the following screenshot, the result of dragging the file “KICK.png” from the left pane to the right pane. image.

Attempting to continue this operation will instead copy the entire folder containing KICK. Deleteing one of these strange files will delete the whole folder (rip my files).

Behavior varies between files, between refreshes, and even over the course of repeated delete-cancel cycles of the same file without refreshing the page.

Here dragging NEUTRAL.png from left to right produces a valid prompt: image

And moments later it ceases to work: image

Seems to trend unerringly towards everything showing up as “”.

Same site works fine on Chrome. Error only in firefox. Erroneous firefox behavior persists even in incognito tab, and after having cleared cache on the site.

Console is filled with the following error: e.classList is undefined Unclear if it is related. Does not show up in chrome, so maybe?

  • Version: v15.2.0
  • Node Version node -v: 14.15.4
  • OS (uname -a on Linux): `Linux localhost 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Browser name/version: Firefox 84.0.2
  • Used Command Line Parameters: none (see config changes below / attached file)
  • Changed Config:
{
    "name": "Tartarus!",
    "auth": true,
    "username": "root",
    "password": "redacted",
     ...
    "editor": "dword",
     ...
    "port": 40100,
     ...
    "root": "/home/tartarus",
    "prefix": "/tartarusfiles",
     ...
    "contact": false,
     ...
    "configDialog": false,
     ...
    "showConfig": false,
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
coderaisercommented, Jan 17, 2021

I am sorta neck deep in another project right now 😅,

So do I 🙂 .

but I could maybe give it a shot?

Nice 👍 Create two functions:

const createNameAttribute = (a) => `js-file-${btoa(encodeURI(a))}`;
const parseNameAttribute = (a) => a.replace(`js-file-, '');

And use createNameAttribute in setCurrentName and parseNameAttribute in getCurrentName:

module.exports.getCurrentName = (currentFile) => {
    const current = currentFile || DOM.getCurrentFile();
    
    if (!current)
        return '';
      
+      const attribute = current.getAttribute('data-name');  
+      return parseNameAttribute(attribute);

-    const link = DOM.getCurrentLink(current);
- 
-    if (!link)
-        return '';
-    
-    return decode(link.title)
-        .replace(NBSP_REG, SPACE);
};
0reactions
coderaisercommented, Jan 18, 2021

Make a PR, I’ll take a look.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox download files with wrong name and no file extension.
File names with spaces are always a bit of a problem and should best be avoid and have spaces replaced by underscores.
Read more >
Profile can't be loaded-Changed Profile Name, but the ...
In the Firefox folder (not the Profiles folder), look for a settings file named Profiles.ini and open that file in a text editor...
Read more >
Error for preview the saved file | Firefox Support Forum
Check the file name for capitalization or other typing errors. Check to see if the file was moved, renamed or deleted. Please see...
Read more >
Sanitize extension-fixup code: Don't add .exe or .txt to files ...
Adding a txt ends up with some files named oddly. ... This bug seems to pertain to text/plain documents only, whereas I think...
Read more >
Firefox saves all downloads not under original filename, but ...
In the Add-ons Manager, on the left, select Extensions. Disable a few add-ons, then Restart Firefox. Some added toolbar and anti-virus add-ons ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found