some update

This commit is contained in:
lucio 2024-07-25 11:40:07 +02:00
parent cf78d06b64
commit 16f61a0a61
4 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,3 @@
FROM d4science/smartgears-distribution:4.0.1-SNAPSHOT-java17-tomcat10.1.19
COPY ./target/storagehub.war /tomcat/webapps/
#COPY ./docker/jackrabbit/bootstrap.properties /app/jackrabbit/
COPY ./docker/storagehub.xml /tomcat/conf/Catalina/localhost/

View File

@ -277,7 +277,6 @@ public class ItemsManager extends Impersonable{
@GET
@Path("{id}/children/count")
@Produces(MediaType.APPLICATION_JSON)
public Long countById(@QueryParam("showHidden") Boolean showHidden, @QueryParam("exclude") List<String> excludes, @QueryParam("onlyType") String nodeType){
InnerMethodName.set("countById");
Session ses = null;

View File

@ -470,7 +470,7 @@ public class WorkspaceManager extends Impersonable {
try {
ses = repository.getRepository().login(Constants.JCR_CREDENTIALS);
sharedPath = pathUtil.getSharedWithMePath(currentUser);
log.info("vres folder path is {}", sharedPath.toPath());
log.info("shared With Me folder path is {}", sharedPath.toPath());
toReturn = Utils.getItemList(ses.getNode(sharedPath.toPath()), excludes, null, false, SharedFolder.class);
} catch (RepositoryException re) {

View File

@ -112,6 +112,13 @@ public class CreateUsers {
createRandomFolderAndFileForCurrentUser();
}
@Test
public void uploadFileUser2() throws Exception {
client.impersonate(user2);
String rootId = this.getUserRootId();
this.uploadFileWithRandomNameForCurrentUser(rootId);
}
@Test
public void createFileAndFolderFarAllUsers() throws Exception {
client.impersonate(user2);