#1588 Listing projects using API v2 fails with ValidationError: {'homepage': ['Not a valid URL.']}
Closed: Fixed 4 years ago by praiskup. Opened 4 years ago by vtrefny.

When using the v2 API I get following API when trying to list projects. Happens with both copr 1.106 and 1.105 on Fedora 31 and 32. Full trceback

In [1]: import copr                                                                                                                                                                                               

In [2]: cl = copr.create_client2_from_file_config(filepath=".config/copr")                                                                                                                                        

In [3]: cl.projects.get_list(owner="vtrefny")

...

ValidationError: {'homepage': ['Not a valid URL.']}

Interestingly this doesn't happen when specifying owner that is a group only when owner is a "normal" user

In [9]: plist = cl.projects.get_list(owner="@storage")                                                                                                                                                            

In [10]: plist.projects                                                                                                                                                                                           
Out[10]: 
[<copr.client_v2.resources.Project at 0x7f9a5de5a460>,
 <copr.client_v2.resources.Project at 0x7f9a5dcf8a90>                                                                                                                                                                                      
Out[10]:

Metadata Update from @praiskup:
- Issue assigned to praiskup

4 years ago

Metadata Update from @praiskup:
- Issue tagged with: bug

4 years ago

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #1595 Merged 4 years ago