AnzhiZhang opened a new issue, #3683:
URL: https://github.com/apache/texera/issues/3683

   ## Reproduce
   
   Create a dataset by a user.
   
   <img width="1694" height="578" alt="Image" 
src="https://github.com/user-attachments/assets/eee571ff-7d54-4e86-9d06-c5ec84c60f82";
 />
   
   Log in as another user, try to create a dataset with the same name.
   
   <img width="1076" height="724" alt="Image" 
src="https://github.com/user-attachments/assets/49e5ba4a-d2ea-4a5b-9dd0-47f7043df210";
 />
   
   <img width="1716" height="90" alt="Image" 
src="https://github.com/user-attachments/assets/cc48a49f-3662-4b4b-956a-6d9f4ce78081";
 />
   
   Same error message with display if using the same user.
   
   ## Reason
   
   Here is the function handling dataset creation.
   
   
https://github.com/apache/texera/blob/c7fcd9f4278f850e3c1456866ba6f25f85a8f489/core/file-service/src/main/scala/edu/uci/ics/texera/service/resource/DatasetResource.scala#L231-L302
   
   `datasetName` is validated to ensure that there is no duplicate dataset.
   
   ## Solution
   
   We first come up with a solution to allow users to create a dataset if used 
by another user. But we find that on line 257, `datasetName` is used as the 
repository name for LakeFS. This is a kind of ID in LakeFS and is used 
everywhere. If we want to change this behavior, we need to give another ID to 
LakeFS, e.g. number ID or uuid.
   
   Therefore, the only solution seems to be to update the error message and 
validation to guide the user to create a dataset with a non-used name.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to