Skip to content

Commit

Permalink
fix: Return permissions and do not throw exception for FileValues wit…
Browse files Browse the repository at this point in the history
…h more than one version (DEV-2855) (#2894)
  • Loading branch information
seakayone authored Oct 23, 2023
1 parent 557730e commit 2b0952e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ final case class SipiResponderADMLive(

_ = if (queryResponse.statements.isEmpty)
throw NotFoundException(s"No file value was found for filename ${request.filename}")
_ = if (queryResponse.statements.size > 1)
throw InconsistentRepositoryDataException(
s"Filename ${request.filename} is used in more than one file value"
)

fileValueIriSubject = queryResponse.statements.keys.head match {
case iriSubject: IriSubjectV2 => iriSubject
Expand Down

0 comments on commit 2b0952e

Please sign in to comment.