Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Emmerich
erp5
Commits
2a10f583
Commit
2a10f583
authored
Mar 08, 2023
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_service: add disabled_public_key_algorithm property.
parent
1dcd8aa9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
124 additions
and
1 deletion
+124
-1
bt5/erp5_web_service/ModuleComponentTemplateItem/portal_components/module.erp5.SFTPConnection.py
...plateItem/portal_components/module.erp5.SFTPConnection.py
+3
-1
bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/disabled_public_key_algorithm_property.xml
...s/FTPConnector/disabled_public_key_algorithm_property.xml
+36
-0
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml
...eItem/portal_skins/erp5_web_service/FTPConnector_view.xml
+1
-0
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_disabled_public_key_algorithm_list.xml
...PConnector_view/my_disabled_public_key_algorithm_list.xml
+84
-0
No files found.
bt5/erp5_web_service/ModuleComponentTemplateItem/portal_components/module.erp5.SFTPConnection.py
View file @
2a10f583
...
@@ -80,7 +80,9 @@ class SFTPConnection:
...
@@ -80,7 +80,9 @@ class SFTPConnection:
break
break
else
:
else
:
raise
SFTPError
(
'No suitable socket family found'
)
raise
SFTPError
(
'No suitable socket family found'
)
self
.
transport
=
Transport
(
sock
)
self
.
transport
=
Transport
(
sock
,
disabled_algorithms
=
{
'pubkeys'
:
self
.
getDisabledPublicKeyAlgorithmList
([]),
})
else
:
else
:
raise
SFTPError
(
'Not a valid sftp url %s, type is %s'
%
(
self
.
url
,
schema
.
scheme
))
raise
SFTPError
(
'Not a valid sftp url %s, type is %s'
%
(
self
.
url
,
schema
.
scheme
))
# Add authentication to transport
# Add authentication to transport
...
...
bt5/erp5_web_service/PropertySheetTemplateItem/portal_property_sheets/FTPConnector/disabled_public_key_algorithm_property.xml
0 → 100644
View file @
2a10f583
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/tokens
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Define the list of disabled public key algorithms.
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
disabled_public_key_algorithm_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
<item>
<key>
<string>
property_default
</string>
</key>
<value>
<string>
python: []
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view.xml
View file @
2a10f583
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
<value>
<value>
<list>
<list>
<string>
my_description
</string>
<string>
my_description
</string>
<string>
my_disabled_public_key_algorithm_list
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
bt5/erp5_web_service/SkinTemplateItem/portal_skins/erp5_web_service/FTPConnector_view/my_disabled_public_key_algorithm_list.xml
0 → 100644
View file @
2a10f583
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_disabled_public_key_algorithm_list
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_lines_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Disabled Public Key Algorithms
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment