Commit Graph

1006 Commits

Author SHA1 Message Date
Tony Kuker
a229d95489 Update sonarcloud issues 2022-10-23 17:21:13 -05:00
Tony Kuker
22eda6e560 Address sonarcloud issues 2022-10-23 16:47:42 -05:00
Tony Kuker
38f151add9 Sonarcloud cleanups 2022-10-23 15:36:36 -05:00
Uwe Seimet
f3553c5480
Resolved issues 772, 827, 909; added numerous unit tests; code cleanup (#915)
* Resolved issues 772, 827, 909

* Added numerous unit tests

* Code cleanup

* Improved type safety by using PbDeviceType instead of string

* Do not flush cache on failed STOP UNIT

* Error message and error handling updates

* Removed duplicate code

* Use map for mapping shift counts

* Reject read/write access if the drive has 0 sectors

* Updated logging configuration for tests
2022-10-23 21:51:39 +02:00
Tony Kuker
823e72b074 Address sonarcloud issue 2022-10-23 14:45:36 -05:00
Tony Kuker
7ef0423b36 Cleanup Sonarcloud issues 2022-10-23 14:37:57 -05:00
Tony Kuker
60e1434e2b Cleanup sonarcloud issues 2022-10-23 13:43:01 -05:00
Tony Kuker
b17ab75c6d Fix compilation error 2022-10-23 12:59:06 -05:00
Tony Kuker
d811a30b92 remove commented code because sonarcloud complains 2022-10-23 12:53:20 -05:00
Tony Kuker
bb55c87c32 Address compiler error 2022-10-23 12:48:04 -05:00
Tony Kuker
c5c020a38a change DWORD to uint32_t 2022-10-23 12:40:42 -05:00
Tony Kuker
d30a54f843 Address sonarcloud issues 2022-10-23 12:36:07 -05:00
Tony Kuker
0fac33c610 Fixed issue with ownership of bus object 2022-10-23 12:08:45 -05:00
Tony Kuker
fe3cc9c7be add debug config for rascsi_test 2022-10-22 20:09:42 -05:00
Tony Kuker
5414557ab5 fix compilation errors 2022-10-22 20:08:14 -05:00
Tony Kuker
e27ebb4962 initial clang format configuration 2022-10-22 17:30:43 -05:00
Tony Kuker
61667f749c run clang-format 2022-10-22 17:30:28 -05:00
Tony Kuker
44d4da2855 ignore astyle temporary files 2022-10-22 16:36:20 -05:00
Tony Kuker
ce21f70178 ran astyle 2022-10-22 16:34:22 -05:00
RaSCSI User
9da944fb3b changed several managers to pointers instead of references 2022-10-22 22:14:00 +01:00
RaSCSI User
8d70bb08ab correct select poll logic 2022-10-22 20:44:47 +01:00
RaSCSI User
5152b3bfd9 missing close() 2022-10-22 20:17:56 +01:00
RaSCSI User
89da050a90 add trace 2022-10-22 20:17:42 +01:00
RaSCSI User
8dbbfde597 remove double initialization 2022-10-22 20:17:24 +01:00
nucleogenic
198c10f70a
Enable web UI auth for test environment (#931) 2022-10-22 09:49:46 -07:00
Daniel Markstedt
e3e833b4d2
Fix one case of Path object conversion that was missed during the refactoring (#929) 2022-10-22 08:01:08 -07:00
RaSCSI User
c8338e657e Need to initialize sbc_version class 2022-10-22 04:49:35 +01:00
Daniel Markstedt
ade656e38b
Break out frontend and backend auth options into stand alone options (#925)
* Break out frontend and backend auth options into stand alone options

* Improve the token auth checks when installing clients
2022-10-21 19:49:53 -07:00
Tony Kuker
5138f81324 fix compiler errors 2022-10-21 21:40:28 -05:00
Tony Kuker
7d3f7e555f Start to merge raspberry pi only changes 2022-10-21 21:06:18 -05:00
Tony Kuker
a3b91d0e1f Merge branch 'develop' into feature_bpi3 2022-10-21 20:59:39 -05:00
Tony Kuker
99a1c7cdbc Update version for next development version 2022-10-21 22:44:31 +01:00
Tony Kuker
5768827af8 Update revision number for release 2022-10-21 22:43:03 +01:00
Tony Kuker
34446e88fe change log level 2022-10-21 22:34:41 +01:00
Daniel Markstedt
64a6d46bee
Merge pull request #920 from akuker/rdmark-file-dir-descriptive-names
Descriptive names for file transfer target dirs
2022-10-19 21:21:57 -07:00
Daniel Markstedt
efd40ceab2 Descriptive names for file transfer target dirs 2022-10-19 19:31:59 -07:00
Daniel Markstedt
926b6c4faa
Remove empty docs dir (#918) 2022-10-18 19:28:39 -05:00
Daniel Markstedt
ac39b3b8a3
Netatalk: Prompt user when pre-existing config is found; Append the images dir as a shared volume (#916)
* Prompt the user before continuing with installation when Netatalk config dir is detected

* Add Netatalk with images dir sharing as an experimental feature
2022-10-17 17:42:49 -07:00
Daniel Markstedt
afcb1534e6
Merge pull request #914 from akuker/rdmark-suppress-warning
Web UI: Change locale fallback message log level to 'info'
2022-10-15 08:13:39 -07:00
Daniel Markstedt
aed793001d Change locale fallback to info logging 2022-10-14 19:39:32 -07:00
nucleogenic
6514e24770
Docker container for Pytest (#901)
* Dockerize Pytest

* Fix auto-delete warning in delete file test

* Allow tests to be executed with a non-default home dir

* Use hostname for Docker container only if tests executed in Docker

* Update container entrypoint to pytest

* Re-format tests with black

* Define if the execution environment is a Docker container in env fixture

* Skip unsupported host bridge attachment test in Docker
2022-10-14 19:30:08 -07:00
Daniel Markstedt
a8ac6a06cf
Fix a web UI integration test (#912)
Fix an integration test that hadn't been updated after the refactoring
2022-10-14 09:12:57 -07:00
Uwe Seimet
0c8d54f055
Fixed validation of full (absolute) filename (#910)
* Fixed validation of full (absolute) filename

* Added missing CR/LF in rasctl output
2022-10-12 22:10:56 +02:00
Daniel Markstedt
5a679509a1
More refactoring of Python code to address Sonar issues (#906)
- Use Path objects for file operations
- Use urllib to sanitize URLs
- Some explicit type conversions
- Consistent regex syntax
- Add rudimentary logging when archive extraction caching fails
- Fixed two cases of the property file creation not being notified in the Flash message
- added doctype and html lang attribute to the web server 502 page
2022-10-12 12:59:01 -07:00
Uwe Seimet
dede2a6f35
Fix logging for Data Out phase, fixed offset (#907)
Fixed issues found while testing for release 22.10
2022-10-11 17:04:17 +02:00
n4al
d6153e9647
Updating Spanish translation (#902)
* Updating Spanish translation

* Removing unused translations
2022-10-10 08:54:27 -07:00
Uwe Seimet
4e4c5b205a
Bugfix: MODE SELECT for format page is incorrect (issue #818) (#899)
* Fix issue with MODE SELECT (#818)

* Replaced strncpy because it was causing a compilation issue
2022-10-10 08:16:47 +02:00
Daniel Markstedt
ccdb51b727
Merge pull request #905 from akuker/rdmark-swedish-22101
Update Swedish translations 2022-10
2022-10-09 16:38:50 -07:00
Daniel Markstedt
e8c3deea2f Update translations 2022-10-09 16:18:17 -07:00
Daniel Markstedt
1b10b123d2
Refactor python code to address Sonarcloud issues (#900)
- copy/move/delete file class methods now take Path objects as arguments
- The file download endpoint in the Web UI uses the safer download from dir method
- Simplified logging
- Merged nested if statements
- Removed naked handling of unknown error states
- Added fallback empty list for drive_properties, to avoid errors when json file is missing or broken
- Move drive_properties to env[]
- Constants for common error messages
- Dummy variable for list comprehension
2022-10-09 13:50:20 -07:00