Modify

Ticket #512 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Error creating tar.gz certs package file when name includes space

Reported by: xenomuta Owned by: ejhernandez@…
Milestone: 0.9 Component: ca
Severity: normal Keywords: CA certificate autority tar tar.gz
Cc:

Description

There is a really simple bug in the Certificate Manager module. It triggers when you try to download certificate files for an issued certificate whose common name contains space or special characters. I think that no quotes or back-slashes where used when creating tar.gz with the "tar" unix tool.

Here we have an extract from /var/lib/ebox/log/error.log

tar: Doe.tar.gz: Cannot stat: No such file or directory tar: John: Cannot stat: No such file or directory tar: Doe-private-key.pem: Cannot stat: No such file or directory tar: John: Cannot stat: No such file or directory tar: Doe-public-key.pem: Cannot stat: No such file or directory tar: John: Cannot stat: No such file or directory tar: Doe-cert.pem: Cannot stat: No such file or directory tar: Error exit delayed from previous errors

Attachments

Change History

comment:1 Changed 6 years ago by ejhernandez@…

  • Status changed from new to assigned

Thanks for your support. I'm gonna look into and fix it.

comment:2 Changed 6 years ago by ejhernandez@…

  • estimatedhours changed from 0 to 3

comment:3 Changed 6 years ago by ejhernandez@…

  • Milestone set to 0.9

comment:4 Changed 6 years ago by ejhernandez@…

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [6985]) Now it's possible to put non alphanumeric characters apart from '/' which is banned closes #512

comment:5 Changed 6 years ago by ejhernandez@…

  • hours changed from 0 to 2
  • totalhours changed from 0.0 to 2.0

Now all alphanumeric characters, plus these non alphanumeric chars: .?&+:\@ and spaces are allowed.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.