Skip to content

Commit

Permalink
fix item validation #EA-3957
Browse files Browse the repository at this point in the history
  • Loading branch information
gsergiu committed Nov 6, 2024
1 parent 8b8a913 commit 96fa66f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.List;
import javax.annotation.Resource;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.core.Authentication;
Expand Down Expand Up @@ -60,6 +61,7 @@ static void setProperties(DynamicPropertyRegistry registry) {
* Generate isShownBy field for all sets in the (local) db
*/
@Test
@Disabled
public void generateGalleriesWithDepiction() throws Exception {
// createTestUserSet(USER_SET_REGULAR, regularUserToken);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ private void validateItem(String item) throws ItemValidationException {

private String extractRecordId(String item) {
//remove base item url
String itemWithoutBase = item.substring(0, getConfiguration().getItemDataEndpoint().length());
String itemWithoutBase = item.substring(getConfiguration().getItemDataEndpoint().length());
if('/' != itemWithoutBase.charAt(0)) {
itemWithoutBase = '/' + itemWithoutBase;
}
Expand Down

0 comments on commit 96fa66f

Please sign in to comment.