Skip to content

Commit

Permalink
fix: [CO-1179] UserServlet to properly return XML and scriptable atta…
Browse files Browse the repository at this point in the history
…chments without defanging (#530)

* fix: [CO-1179] UserServlet force content-disposition attachment when mime-part is scriptable

* chore: cleanup

* test: add API test for UserServlet

* chore: update test name

* chore: test cleanup

- limit scope of test in NativeFormatter
- improve test in UserServletTest

* chore: cleanup

* chore: improve naming of var in test
  • Loading branch information
keshavbhatt authored Jun 27, 2024
1 parent e36d1d9 commit 2708e4d
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 147 deletions.
3 changes: 0 additions & 3 deletions store/src/main/java/com/zimbra/cs/service/UserServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ protected boolean proxyIfRemoteTargetAccount(
* Constructs the exteral url for a mount point. This gets the link back to the correct server
* without need for proxying it
*
* @param authToken
* @param mpt The mount point to create the url for
* @return The url for the mountpoint/share that goes back to the original user/share/server
* @throws ServiceException
Expand Down Expand Up @@ -514,8 +513,6 @@ public static String getExternalRestUrl(OperationContext octxt, Mountpoint mpt)
* Constructs the exteral url for a mount point. This gets the link back to the correct server
* without need for proxying it
*
* @param authToken
* @param mpt The mount point to create the url for
* @return The url for the mountpoint/share that goes back to the original user/share/server
* @throws ServiceException
*/
Expand Down
Loading

0 comments on commit 2708e4d

Please sign in to comment.