Skip to content

Commit

Permalink
Merge pull request #98 from frostyfrog/hotfix/0.7.5-working
Browse files Browse the repository at this point in the history
Cherry-Pick: fix: didx request cannot be accepted
  • Loading branch information
dbluhm authored Sep 27, 2022
2 parents f0b2719 + 5305605 commit e84fc18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion aries_cloudagent/protocols/didexchange/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,10 @@ async def receive_request(
conn_rec.their_did = request.did
conn_rec.state = ConnRecord.State.REQUEST.rfc23
conn_rec.request_id = request._id

async with self.profile.session() as session:
await conn_rec.save(
session, reason="Received connection request from invitation"
)
else:
# request is against implicit invitation on public DID
async with self.profile.session() as session:
Expand Down
4 changes: 2 additions & 2 deletions aries_cloudagent/protocols/out_of_band/v1_0/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from marshmallow.exceptions import ValidationError

from ....admin.request_context import AdminRequestContext
from ....connections.models.conn_record import ConnRecordSchema
from ....messaging.models.base import BaseModelError
from ....messaging.models.openapi import OpenAPISchema
from ....messaging.valid import UUID4
Expand All @@ -22,6 +21,7 @@
from .messages.invitation import HSProto, InvitationMessage, InvitationMessageSchema
from .message_types import SPEC_URI
from .models.invitation import InvitationRecordSchema
from .models.oob_record import OobRecordSchema

LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -188,7 +188,7 @@ async def invitation_create(request: web.BaseRequest):
)
@querystring_schema(InvitationReceiveQueryStringSchema())
@request_schema(InvitationMessageSchema())
@response_schema(ConnRecordSchema(), 200, description="")
@response_schema(OobRecordSchema(), 200, description="")
async def invitation_receive(request: web.BaseRequest):
"""
Request handler for receiving a new connection invitation.
Expand Down

0 comments on commit e84fc18

Please sign in to comment.