Modify

Opened 6 years ago

Last modified 3 years ago

#1045 new defect

URL field should be optional

Reported by: Ian Hinder Owned by: Eric Seidel
Priority: minor Milestone:
Component: GetComponents Version:
Keywords: Cc:

Description

In a CRL file, it should be possible to have only an AUTH_URL field and omit the URL field, since it might be that there is no unauthenticated way to access the repository (e.g. for private repositories). At the moment, when I omit the URL field for a Git repository, the error message is:

Use of uninitialized value $git_repo in substitution (s///) at ./GetComponents line 589.
Use of uninitialized value $git_repo in substitution (s///) at ./GetComponents line 590.
Use of uninitialized value $rec{"GIT_REPO"} in substitution (s///) at ./GetComponents line 593.
Use of uninitialized value $rec{"GIT_REPO"} in substitution (s///) at ./GetComponents line 594.
...

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by Roland Haas

Currently the optional field is AUTH_URL. If you only want to pass a single URL since then you can pass only URL and it will be used for both URL and AUTH_URL.

On the other hand, GetComponents should abort if a required field is missing rather than produce some Perl warning.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Eric Seidel.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Eric Seidel to the specified user.
Next status will be 'confirmed'.
The owner will be changed from Eric Seidel to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.