Code Monkey home page Code Monkey logo

cockpit-navigator's People

Contributors

dawsondellavalle avatar fmsy avatar joshuaboud avatar sam55silver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cockpit-navigator's Issues

Fedora Support ?

Since this and other projects by 45Drives already support EL7 and EL8, would it be possible to add support for Fedora? I am aware that I could technically install via an El8 binary (possibly) or from source. Just wondering in case this was a simple thing to implement as EL and Fedora are closely related.

"Distribution not supported" while running "setup-repo.sh" on Ubuntu 22.04 LTS

Could you guys please update the setup-repo.sh script to make it compatible with Ubuntu 22.04 LTS based distros?

I'm currently running Pop!_OS 22.04 LTS x86_64 and when running sudo bash setup-repo.sh I'm getting this

This command has been run on a distribution that is not supported by the 45Drives Team.

If you believe this is a mistake, please contact our team at [email protected]!

I'm not familiar with the manual commands for adding repos, but because the above script failed I tend to think the manual procedure you provided (https://github.com/45Drives/cockpit-navigator#ubuntu-2) would fail too, leaving the repo configuration in a broken status... so, I hope you can help :)
Thank you!

Broken dependencies?

I'm using cockpit on an Ubuntu 20.04.3 server and have installed the 45drives repository.

Navigator installed fine (although there's an issue with the fonts I'll report on a separate post).

Updating from inside cockpit, it fails with this message:

The following packages have unmet dependencies:
  cockpit-system: Breaks: cockpit-dashboard but 215-1 is to be installed
  cockpit-dashboard: Depends: cockpit-ws (< 215-1.1~) but 250.1.1-1 is to be installed
  cockpit-bridge: Breaks: cockpit-dashboard (< 233) but 215-1 is to be installed

How do I resolve this?

Info column - Shown multi-selected file amount is one number greater

Bug Info

Describe the bug
Info pane shows a number one greater amount of selected files when the selection is done with CTRL pressed to begin with (multi select).

To Reproduce
Steps to reproduce the behavior:

  1. File view
  2. Click on any entry with CTRL already pressed
  3. The info column shows 2 selected
  4. Select more files - it'll always show n+1 selected.

Expected behavior
The info column should have shown 1 selected.

Screenshots

Console Output

(...)
The resource from “https://[REDACTED]:9090/cockpit/@localhost/*/po.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
[index.html](https://[REDACTED]:9090/cockpit/@localhost/navigator/index.html#/)
Loading failed for the <script> with source “https://[REDACTED]:9090/cockpit/@localhost/*/po.js”.
(...)

These entries might not be relevant as they show up already before navigating to Cockpit Navigator in Cockpit.

Client Side

Desktop

  • Browser Firefox
  • Version 122.0.1

Server Side

  • OS: Fedora CoreOS 39.20240128.3.0
  • Cockpit Version: 310.2
  • cockpit-navigator Version: 0.5.10

File copied halfway but no error message

Hi, I encounter an issue, I am copying a large file(20g) using this plugin.

After finish, I found that the file copied is only 10GB and there is no error popup in navigator to show error.

Is there a way i can show some alert or error message to notify if there is file copy problem

Spinner appears in the background when delete operation failed for a directory prompting recursive deletion

Bug Info

When attempting to delete a directory that is not empty, the operation will first fail, as it's not running with '-r' option, but a spinner shows up in the background. The spinner does not go away if the user decides to close the modal dialog, by pressing 'No'.

To Reproduce
Steps to reproduce the behavior:

  1. Click 'delete' button on a non empty directory
  2. See spinner appearing and the modal promting for recursive deletion
  3. Click 'No'
  4. See spinner blocking the whole page

Expected behavior
The spinner should only be present while operations are running

Screenshots
Screencast from 2023-02-03 10-08-32.webm

Wrong file permission on newly created files when logged in with 'Administrative access'

Bug Info

Creating a new file or directory when logged in with a normal user, but having elevated permissions (Administrative access) will create files owned by root:root instead of the current user.

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'New file' or 'New director' icon buttons in the UI and create that
  2. See file ownership bring root:root

Expected behavior
currentuser:currentuser permissions are expected, even when logged in with 'Administrative access'

Screenshots
Screen Shot 2023-02-02 at 16 38 02

Screen Shot 2023-02-02 at 16 38 10

Font on Navigator not following other cockpit fonts.

I just installed Navigator and it seems to work fine, but the font used is some sort of Times New Roman, instead of the non-serif fonts used on the rest of the cockpit interface. Is that OK? I would suggest to use similar fonts to the rest of the cockpit UI.

Screenshot 2021-09-30 at 18-23-48 Navigator - servidor

Debian Support?

Is there something we should know about the lack of Debian support? I installed the ubuntu deb file in Debian 11 and all works fine. Any thing I'm not noticing?

Properties-pane doesn't update when switching selected files

Bug Info

Describe the bug
After selecting a file and inspecting it's properties, if you select another file, the "Properties"-panel isn't updated if you select another file. (and leave the properties of the previous file open.)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Navigator in Cockpit
  2. Browser some files
  3. Notice the details-pane only updates the filename.
  4. Click the "Edit properties" button, just leave it open.
  5. click other files in the list and see what updates.

Expected behavior
I expect that the permissions would automatically update, depending on the selected file

Screenshots
image

Console Output
n/a

Client Side

Desktop (please complete the following information):

  • OS: Windows
  • Browser Firefox
  • Version 113.0.2

Smartphone (please complete the following information):
n/a

Server Side

  • OS: Fedora Server 38
  • Cockpit Version: 292
  • Cockpit Navigator: 0.5.9

Additional context
It seems to me, either it was forgotten to update the entire Properties-pane, that's left open.

Frontend error interrupt file downloading

error (2) Bug Info

Frontend error interrupt file downloading

To Reproduce
Steps to reproduce the behavior:

  1. Login to cockpit
  2. Open Navigator
  3. Try to download file
  4. See error in browser console

Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self' https://172.16.18.152:9090". Either the 'unsafe-inline' keyword, a hash ('sha256-BMIkowAqVEI88ibUJ1NtYB8ByZOuS4MTi73eGoFo2+Q='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

Refresh helps but only sometimes. If copy file link from downloads and copy in new tab, file downloading is successfull.

My Browsers:
Edge 112.0.1722.58
Chrome 112.0.5615.138 (Official Build) (64-bit)

Client OS: Windows 10, Windows 2016

Regular user gain full access through Navigator.

Bug Info

Describe the bug
While testing I've noticed that any regular user (even without any permissions) can login to web console and navigate (Navigator) through the whole system with full permissions.

To Reproduce

  1. Add a new user
  2. Login to web console
  3. Use Navigator

Expected behavior
Browsing limited to user's folder.

Client Side

Desktop (please complete the following information):

  • OS: [MacOS Catalina]
  • Browser [chrome 108.0.5359.71]
  • Version [10.15.7]

Server Side

  • OS: [Debian 11]
  • Cockpit Version: [282-1~bpo11+1]

Download and upload not working

Bug Info

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Console Output

  • Firefox:
    • Go to the menu dropdown > Web Developer > Web Developer Tools > Console
    • Expand relevent error messages
    • Copy and paste console log
  • Chrome
    • Press Ctrl+Shift+J
    • Expand relevent error messages
    • Copy and paste console log
  • Safari
    • Open console
    • Expand relevent error messages
    • Copy and paste console log
  • Internet Explorer
    • Good luck

Client Side

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Server Side

  • OS: [e.g. Ubuntu 20.04, Rocky 8]
  • Cockpit Version: [e.g. 235]

Additional context
Add any other context about the problem here.

[BUG] Permissions and ownership reset on saving file after editing

Discussed in #28

Originally posted by sommerso September 29, 2021
Hi,

I'm want to use navigator as a GUI to edit /etc/mail/relay-domains. This will be an ACL for a jnr Windows Admin to administrate.

My user is in visudo as well as the wheel group. I've managed to make /etc/mail the default landing page for Navigator and the file has rw-rw-rw permissions, however when I try to save my edit, I get a pop up

Operation not permitted.

I changed ownership to my user and confirmed that my user can write to the file via the shell. However I'm still having issues with Navigator.

What am I missing?

File upload functionality breaks when dealing with larger size files

Large File Upload Fails

Describe the bug
File upload of larger file size, say >2GB, fails after sometime.

To Reproduce
Steps to reproduce the behavior:
Try to upload a file of size >2GB, upload process starts but crashes after some time.

Expected behavior
File should be uploaded successfully.

Additional context
IMHO, the file should be uploaded in chunks.

slice_file(file) {
var offset = 0;
var next_offset;
var chunks = [];
this.num_chunks = Math.ceil(file.size / this.chunk_size);
for (let i = 0; i < this.num_chunks; i++) {
next_offset = Math.min(this.chunk_size * (i + 1), file.size);
chunks.push(file.slice(offset, next_offset));
offset = next_offset;
}
return chunks;
}

This code splits the files in chunks but stores all the chunks in an array, which is ultimately present in the memory.
Hence, when dealing with larger file size, this code may crash.
I would suggest, to read to file in chunks rather than storing chunks of whole file in array.

failed to download

Suggestion to Include Information about Cockpit-Navigator on Fedora

I've noticed that Cockpit-Navigator is not officially supported on Fedora, but it is available in the Fedora repositories. It might be helpful to add a note about this in the documentation to inform users about its existence on Fedora. This could potentially prevent unnecessary bug reports and contribute to increased adoption.

Thank you for considering this suggestion.

Package for Ubuntu Server LTS 22.04

Hi, Is it possible to provide a package for Ubuntu Server LTS 22.04 ?
Pls do consider.

Thanks,
MCZen

p.s. - Is there a Ubuntu PPA that has this package ?

Is Ubuntu Server 22.04.2 LTS Compatible with Navigator?

I am running Ubuntu Server 22.04.2 LTS, codename "Jammy". I installed Cockpit and it was working great. Then I installed the Navigator application and I started getting this error when I refresh the applications screen in Cockpit:

"Error - Cannot download packages whilst offline"

I do not understand the error because the Network log says "carrier: link connected". So I am thinking my installing the Navigator application somehow messed up my Cockpit app. What is the correct way to install Navigator? Has anybody out there had any success installing Navigator into Cockpit? Because it never worked for me after using the two installations commands below:

$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator_0.5.10-1focal_all.deb
# apt install ./cockpit-navigator_0.5.10-1focal_all.deb

I also tried the installation commands shown below with no success:


wget -qO - https://repo.45drives.com/key/gpg.asc | sudo gpg --dearmor -o /usr/share/keyrings/45drives-archive-keyring.gpg

cd /etc/apt/sources.list.d
sudo curl -sSL https://repo.45drives.com/lists/45drives.sources -o /etc/apt/sources.list.d/45drives.sources
sudo apt update

Navigator screen is not loading locally

Hello, I am Anup Chandak. I'm interested in the project "Navigator plugin modernization" for GSoC 2023.
I am using ubuntu operating system and I followed all the process in readme file to set up cockpit-navigator. But Navigator screen is not loading locally.
Here are some images of what its looking like on my machine. I can login to cockpit with browser and access navigator option present there.

As stated in Docs here
https://docs.google.com/document/d/1PLf4ZO1qgc_yZL1aHkWGmvg9QKGaaMmyzBkG1SbJrKA/edit
I worked on webpack.config.js file and try to find issue with patternfly but as I am not able to run it
locally I am unable to proceed.
Please guide how can I start working on this project.

Screenshot from 2023-03-02 22-42-08

Screenshot from 2023-03-02 22-41-44

issue installing on Rocky Linux 9 Using RHEL 8 Repos

Bug Info

Describe the bug
package dependencies not working well

To Reproduce
Steps to reproduce the behavior:
just try to install on rocky linux 9

Expected behavior
Install Successfull

Screenshots
If applicable, add screenshots to help explain your problem.

Console Output
[root@goblin ~]# dnf install cockpit-navigator
45Drives EL8 Stable 849 B/s | 833 B 00:00
45Drives EL8 Stable 6.7 kB/s | 3.1 kB 00:00
Importing GPG key 0x731C472B:
Userid : "FourFiveDrives Repo (45Drives Package Repositories) [email protected]"
Fingerprint: 3FBD 7E03 4E80 BAF6 3D5A A9BB 9889 DBBC 731C 472B
From : https://repo.45drives.com/key/gpg.asc
Is this ok [y/N]: y
45Drives EL8 Stable 435 kB/s | 889 kB 00:02
Rocky Linux 9 - BaseOS 5.1 MB/s | 1.7 MB 00:00
Rocky Linux 9 - AppStream 8.5 MB/s | 6.4 MB 00:00
Rocky Linux 9 - Extras 20 kB/s | 6.6 kB 00:00
Error:
Problem: cannot install the best candidate for the job

  • nothing provides /bin/mkdir needed by cockpit-navigator-0.5.10-1.el8.noarch
  • nothing provides /bin/rmdir needed by cockpit-navigator-0.5.10-1.el8.noarch
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

[root@goblin ~]# cat /etc/os
cat: /etc/os: No such file or directory
[root@goblin ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.1 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.1 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.1"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.1"

Server Side

  • OS: Rocky Linux 9
  • Cockpit Version: 276.1

Additional context
Just Trying to Install on Rocky Linux 9 and test it

Path can change while editing folder permissions in navigator

When editing a directory/file in navigator, if you click outside of the editor. It will change the currently edited directory/file to the folder above. You can also select other files/directories and keep current changes. Can lead to accidentally changing permissions on the incorrect directory/file. Can also be a way around the warning of editing permissions on a dangerous path.

I believe it is an issue on a few versions, but can consistently recreated on:

Ubuntu 20.04
cockpit-navigator/focal,now 0.5.8-1focal all [installed]

The folder list is not keyboard navigatable

Bug Info

Describe the bug
The icons that reprecent the folders / files on the filesystem are not keyboard navigatable.

Expected behavior
It's expected behavior to be able to move with arrows - left - right, and select with enter key.

Tested current main branch, build from sources.

Some CSS styles are missing

Hello!

Installed your plugin, but it seems some styles did not apply. Do you have any idea how I can fix this? I'm not sure if this is a bug, so I created a blank issue.

I have tested this issue by installing this plugin both with make install from source (ba615bd) and by just downloading the .deb file and installing it. Im using debian and I use cockpit version 273.

If you need any details, please let me know

Screenshot

Some CSS issue 1


Some CSS issue 2

Support for Stream9/EL9?

Bug Info

i tried to install this on Centos Stream 9. The setup script for Centos 8 doesn't work. and copying the repo file manually still gives an error.

To Reproduce
Steps to reproduce the behavior:

  1. Install repo file manually
  2. Get following error:

`Error:
Problem: cannot install the best candidate for the job

  • nothing provides /bin/mkdir needed by cockpit-navigator-0.5.8-2.el8.noarch
  • nothing provides /bin/rmdir needed by cockpit-navigator-0.5.8-2.el8.noarch
    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use
    `

Upload mangels big files

Bug Info

Describe the bug
If a big file is uploaded to the target machine (where Cockpit is running on) by drag and drop, the file is crippled.
It seems that only the last 32KB a transfered correctly, but the rest of the file is filed with zeros (file size is correct)

To Reproduce
Steps to reproduce the behavior:

  1. Create big file: dd if=/dev/urandom of=testfile.bin bs=1024 count=1500
  2. download testfile to Windows machine with WinSCP. Rename file to testfile4navigator.bin.
  3. Upload testfile4navigator.bin to target machine with Navigator by dragging the file into Navigators file view (I am using Firefox on Windows)
  4. Compare testfile.bin with testfile4navigator.bin on target machine
  5. Or upload a big tar file with Navigator and it will not be extractable any more on target machine.

Expected behavior
Uploaded file is not changed

Screenshots
grafik

Console Output

Client Side

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox
  • Version 78.15esr

Server Side

  • OS: Ubuntu 20.04 Server
  • Cockpit Version: 215

info keeps stacking up when clicked

when clicking the question mark at the bottom right the info gets displayed.

when it is clicked again the info is displayed again, this can be repeated probably indefinitely and the space will just keep piling up at the bottom of the screen.

i feel a better behavior would be if for a second click the already displayed space would close again.

Ordinary users cannot download files!

Bug Info

Describe the bug
Ordinary users cannot download their own files in the home directory, and the download error prompts: no permission or network problems, but root users can download. This problem exists in the Chrome and Firefox browsers of win10 20H2, Ubuntu20.04, centos8.4, but the safari browser of macOS is normal.

Expected behavior
Ordinary users can download files in their home directories.

Screenshots

1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.