Skip to content

no function clause matching public_key:get_asn1_module('ExtensionRequest') #10028

@badlop

Description

@badlop

Describe the bug

Thanks to the latest fixes in public_key (including #10001), most of the code that worked with OTP 27 now seems to be working again... except one case that still fails:

public_key:der_encode('ExtensionRequest', []).

** exception error: no function clause matching public_key:get_asn1_module('ExtensionRequest') (public_key.erl:590)
     in function  public_key:der_encode/2 (public_key.erl:833)

To Reproduce

Since OTP 28.0-rc4, including 28.0.1, it fails:

$ erl28-rc4
Erlang/OTP 28 [RELEASE CANDIDATE 4] [erts-16.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Eshell V16.0 (press Ctrl+G to abort, type help(). for help)
1> public_key:der_encode('ExtensionRequest', []).
** exception error: no function clause matching public_key:get_asn1_module('ExtensionRequest') (public_key.erl:575)
     in function  public_key:der_encode/2 (public_key.erl:800)

$ erl28
Erlang/OTP 28 [erts-16.0.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Eshell V16.0.1 (press Ctrl+G to abort, type help(). for help)
1> public_key:der_encode('ExtensionRequest', []).
** exception error: no function clause matching public_key:get_asn1_module('ExtensionRequest') (public_key.erl:590)
     in function  public_key:der_encode/2 (public_key.erl:833)

Expected behavior

Before OTP 28.0-rc4, it worked perfectly:

$ erl27
Erlang/OTP 27 [erts-15.2.7] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Eshell V15.2.7 (press Ctrl+G to abort, type help(). for help)
1> public_key:der_encode('ExtensionRequest', []).
<<48,0>>

$ erl28-rc3
Erlang/OTP 28 [RELEASE CANDIDATE 3] [erts-16.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Eshell V16.0 (press Ctrl+G to abort, type help(). for help)
1> public_key:der_encode('ExtensionRequest', []).
<<48,0>>

Affected versions

OTP 28.0-rc4 up to 28.0.1. Looking at "master" git branch, it's probably still affected.

Metadata

Metadata

Assignees

Labels

bugIssue is reported as a bugteam:PSAssigned to OTP team PS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions