Project

Profile

Help

Issue #1851

closed

Pulp can't handle special characters in password

Added by petr.tuma about 8 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6.5
Platform Release:
OS:
RHEL 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

When using password with special characters in yum_importer.json, Pulp fails to properly parse the password. Problem detected for password that contains "/" character.

Actions #1

Updated by mhrivnak about 8 years ago

  • Triaged changed from No to Yes

Were you specifying a password for a proxy? Or for the remote feed?

What error did you see exactly?

Actions #2

Updated by petr.tuma about 8 years ago

I was specifying password for proxy.

Unfortunately I didn't save the message it gave me, but it said Authentication failed followed by username and password, where password was cut at the character mentioned above.

Actions #3

Updated by Ben.Stanley over 6 years ago

I have been affected by a similar problem.

In my case, the password contains a single backslash. Entering the password literally in
/etc/pulp/server/plugins.conf.d/yum_importer.json
/etc/pulp/server/plugins.conf.d/iso_importer.json

causes the following errors in the log when pulp is started:

----------------------------------------------------------------------------------------------------------
Dec 11 14:07:52 bumblebee pulp: pulp.plugins.loader.manager:INFO: Loaded plugin yum_distributor for types: rpm,srpm,drpm,erratum,package_group,package_category,distribution,yum_repo_met
adata_file
Dec 11 14:07:52 bumblebee pulp: pulp.plugins.loader.manager:INFO: Loaded plugin export_distributor for types: rpm,srpm,drpm,erratum,distribution,package_category,package_group
Dec 11 14:07:52 bumblebee pulp: pulp.plugins.loader.manager:INFO: Loaded plugin rpm_rsync_distributor for types: rpm,srpm,drpm,erratum,package_group,package_category,distribution,yum_re
po_metadata_file
Dec 11 14:07:52 bumblebee pulp: pulp.plugins.loader.manager:INFO: Loaded plugin iso_distributor for types: iso
Dec 11 14:07:52 bumblebee pulp: pulp.plugins.loader.manager:INFO: Loaded plugin iso_rsync_distributor for types: iso
Dec 11 14:07:52 bumblebee pulp: pulp.plugins.loader.manager:INFO: Loaded plugin group_export_distributor for types: rpm,srpm,drpm,erratum,distribution,package_category,package_group
Dec 11 14:07:52 bumblebee pulp: pulp.server.initialization:ERROR: One or more plugins failed to initialize. If a new type has been added, run pulp-manage-db to load the type into the da
tabase and restart the application. Error message: Invalid \escape: line 5 column 23 (char 125)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) Unrecoverable error: ValueError('Invalid \\escape: line 5 column 23 (char 125)',)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) Traceback (most recent call last):
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/celery/worker/__init__.py", line 206, in start
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) self.blueprint.start(self)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) self.on_start()
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/celery/apps/worker.py", line 157, in on_start
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) sender=self.hostname, instance=self, conf=self.app.conf,
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/celery/utils/dispatch/signal.py", line 166, in send
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) response = receiver(signal=self, sender=sender, **named)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/pulp/server/async/app.py", line 168, in initialize_worker
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) initialization.initialize()
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/pulp/server/initialization.py", line 36, in initialize
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) plugin_api.initialize()
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/api.py", line 55, in initialize
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) loading.load_plugins_from_entry_point(*entry_point)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/pulp/plugins/loader/loading.py", line 60, in load_plugins_from_entry_point
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) cls, cfg = entry_point.load()()
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/importer.py", line 26, in entry_point
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) plugin_config = read_json_config(CONF_FILENAME)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib/python2.7/site-packages/pulp/common/config.py", line 681, in read_json_config
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) config = json.load(f)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) **kw)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) return _default_decoder.decode(s)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) File "/usr/lib64/python2.7/json/decoder.py", line 382, in raw_decode
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) obj, end = self.scan_once(s, idx)
Dec 11 14:07:52 bumblebee pulp: celery.worker:ERROR: (14185-23264) ValueError: Invalid \escape: line 5 column 23 (char 125)
Dec 11 14:07:53 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:07:58 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:08:03 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:08:08 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:08:13 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:08:18 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:08:23 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
Dec 11 14:08:28 bumblebee pulp: pulp.server.async.scheduler:ERROR: There are 0 pulp_resource_manager processes running. Pulp will not operate correctly without at least one pulp_resource_manager process running.
----------------------------------------------------------------------------------------------------------

Please note that these error messages do NOT identify the name of the file containing the error! That would have been very helpful!

I have replaced the '\' with an escaped version '\\', and now pulp starts successfully.

This would appear to be a problem with the json parser barfing on an invalid input file. It would be most useful if the file name and path could be printed in the error message, along with the line and column within the file, so that the cause can be fixed directly!

Actions #4

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #5

Updated by bmbouter about 5 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #6

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF