Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 24738 push files #25164

Merged
merged 43 commits into from
Jun 30, 2023
Merged

Issue 24738 push files #25164

merged 43 commits into from
Jun 30, 2023

Conversation

fabrizzio-dotCMS
Copy link
Contributor

@fabrizzio-dotCMS fabrizzio-dotCMS commented Jun 6, 2023

Proposed Changes

  • New Resource that allows pulling info about our resources using site name and folder path structure
  • We can now push, pull, and delete files and or their versions. Specifying a file asset path
  • We try to replicate as much as possible the behavior presented by our Webdav endpoints

🤖 Generated by Copilot at a8399fb

The pull request adds new features and tests to the browser API and the web asset resource. It allows filtering folder content by file name, language, and status, and managing assets via the REST API. It also refactors some classes and adds javadoc comments and annotations. The main files affected are BrowserAPIImpl.java, WebAssetResource.java, AssetPathResolver.java, and their corresponding test classes.

🤖 Generated by Copilot at a8399fb

  • Add new endpoints for downloading, uploading, and deleting assets in the WebAssetResource class (link), using the WebAssetHelper class and the data classes from the asset package.

@fabrizzio-dotCMS fabrizzio-dotCMS marked this pull request as draft June 6, 2023 21:19
@jdotcms
Copy link
Contributor

jdotcms commented Jun 6, 2023

In general we have some security stuff for upload file on the temp api
I am not sure if you should follow the temp api pattern or reimplement the rules here

@fabrizzio-dotCMS fabrizzio-dotCMS marked this pull request as ready for review June 22, 2023 21:32
@fabrizzio-dotCMS fabrizzio-dotCMS linked an issue Jun 22, 2023 that may be closed by this pull request
5 tasks
Copy link
Contributor

@nollymar nollymar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabrizzio-dotCMS you should include your new tests to the MainSuite2b as well. The way tests are executed was modified for performance reasons

@dotcms-sonarqube
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 0.0% 0.0% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

@nollymar nollymar merged commit 0365156 into master Jun 30, 2023
@nollymar nollymar deleted the issue-24738-push-files branch June 30, 2023 21:15
manuelrojas pushed a commit that referenced this pull request Jul 5, 2023
* #24738

* #24738 pusg files

* #24738

* #24738

* #24738

* #24738 file asset download endpoint

* #24738 save point

* #24738 fixes

* #24738 fixing 404

* #24738  fix bug on pull

* #24738 adding delete support + tests

* #24738 adding doc

* #24738 adding doc

* #24738 many fixes bringing versions + initiating delete endpoint work

* #fix postman

* #24738 fix in tests

* #24738 remove unnecessary class

* #24738  fixing sub folder dups + IT for rchive and delete

* #24738 fix conflict

* #24738 archive file postman test

* #24738 fix retrieving file versions

* #24738 feedback

* #24738 improve finding all versions

* #24738 no dont to filter live or worrking if we get our versions joined with contentlet_version_info

* #24738 order tests

* #24738 change on the field we use to get to the  asset

* #24738

* #24738 solve conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dotCMS CLI: Implement endpoint to push files to dotCMS
5 participants