since ‎13-04-2020
‎11-11-2020
skmAem
Level 2
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi @Arun_Patidar, Yes I am able to access the tiff file in the browser just fine.I guess preview is not supported for the original rendition but i can click on other renditions and they seem to load fine.Regards,SKM

Views

99

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hello David, Sorry for late response but I was able to download the original rendition successfully.

Views

158

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
I wonder if that particular tif file is corrupt or something. I tried with another large tif file of 189mb and the curl command worked just fine.

Views

212

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Looks like we on to something, so the curl command works fine for a 1mb tif file. But the original tif file is 146mb and I verified that original rendition does have content. Screenshot below:

Views

220

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
here are the two original screenshots

Views

237

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
I see the error in the error.log as the same. 

Views

239

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
here is the screenshot 

Views

242

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
There are 3 answers to this topic, one originally by you and two by me. I have the screenshots in the two answers. May be click on "View Entire Topic" to see the additional answers.

Views

247

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
I have uploaded the screenshot. The get request via postman also returns the 404 for tif assets.

Views

274

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi @davidjgonzalezz ,Here is the screenshot you requested: -SKM

Views

103

Like

1

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
I am on 6.5.6.0. I am using the same account admin:admin to access the Capture.PNG in the same folder. I will upload the screenshot of list view to show the both.

Views

277

Likes

0

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi @davidjgonzalezz ,Thanks for your quick response. I tried the sample curl commands and I still get the 404 for tif file. I am on 6.5.6.0. Here are the commands and outputs from a terminal: $ curl --user admin:admin http://localhost:4502/api/assets/skm-local/test.tif -X PUT -H"Content-Type: application/json" -d '{"class":"asset", "properties":{"dc:title":"My TIF"}}'{"class":["core/response"],"properties":{"path":"/api/assets/skm-local/test.tif","parentLocation":"/api/assets/skm-local.json","re...

Views

113

Like

1

Replies

0
Re: AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi David, I tried the curl commands and again the same re

Views

299

Likes

0

Replies

0
AEM 6.5 Assets Http Api - 404 error for tif assets
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi All,I have written a python script to update one of the property for all assets under a folder using assets http api. It's a PUT request to update the property. The script works fine for PNGs, PDFs but not for tif assets, it is throws a Resource Not Found, 404 error.For example: http://localhost:4502/api/assets/skm-local/Capture.PNG works and I get 200 back. But http://localhost:4502/api/assets/skm-local/test.tif does not work and I get 404 return. I get the same result when I try this reques...

Views

372

Likes

0

Replies

23
Re: Is it possible to disable OOTB service component? AEM...
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi @SundeepKatepally , I also want to avoid disabling the OOTB service implementation but I am perplexed as to why my implementation is not getting executed. Here is my implementation declaration: @Component( service= AssetDownloadService.class, immediate=true, property={ Constants.SERVICE_DESCRIPTION + "=Asset Download Service", Constants.SERVICE_RANKING + ":Integer=10000" } ) public class AssetDownloadServiceNewImpl implements AssetDownloadService {} Other option I could think of is to overlay...

Views

197

Like

1

Replies

0
Re: Sql2 query to find pages containing duplicate propert...
Avatar

skmAem

skmAem
- Adobe Experience Manager Assets
Thanks @narendragandhi, Excellent suggestion! I can probably use json to csv converter to convert results into csv/xsl and then sort by property to see if any duplicates.

Views

130

Likes

0

Replies

0
Is it possible to disable OOTB service component? AEM 6.5
Avatar

skmAem

skmAem
- Adobe Experience Manager
We want to allow our users (non admins) to download expired assets. There is an OOTB assetdownloadserviceImpl (java) that prevents them from doing so since it checks if an asset is expired or not. I have changed this behavior and implemented custom assetdownloadservice. Now the problem is there are two service implementations for the same service and the OOTB service implementation is getting priority over the custom one. I tried to set the service.ranking property to Integer=10000 for the custo...

Views

233

Like

1

Replies

2
Re: As a non admin user, I need the ability to download E...
Avatar

skmAem

skmAem
- Adobe Experience Manager Assets
I have been able to overlay several files to make download option available for expired assets for non-admin users but when I complete the download popup, it downloads an empty file. Not sure what else I need to change so that it actually downloads the expired assets. Anyone has been able to enable this?SKM

Views

67

Like

1

Replies

0
Re: Sql2 query to find pages containing duplicate propert...
Avatar

skmAem

skmAem
- Adobe Experience Manager Assets
Asking it again to see if anyone has pointers...

Views

146

Like

1

Replies

2
Sql2 query to find pages containing duplicate property value
Avatar

skmAem

skmAem
- Adobe Experience Manager Assets
Hi AEM Gurus, Is it possible to use jcr sql2 query to find pages that contain the same id value (supposed to be unique but got duplicated some how) in one of the custom page property? I have tried with this sql2 query but it fails since we can't compare a dynamic operand against a dynamic operand. Since sql2 doesn't have group by, having clauses, my choices seem to be limited. I also tried playing around with not issamenode but no luck so far. select n1.[jcr:path], n2.[jcr:path] from [cq:PageCon...

Views

201

Likes

0

Replies

4
Re: Sign in with Adobe - Asset Link configuration -AEM Au...
Avatar

skmAem

skmAem
- Adobe Experience Manager Assets
@nitinjl Another option is to overlay login.jsp from /libs/granite/core/components/login/login.jsp into /apps/... . And then around line nbr 394, you will see a line as below:ImsConfigProvider imsConfigProvider = sling.getService(ImsConfigProvider.class);comment out this line and replace it withImsConfigProvider imsConfigProvider = null;This will ignore the other ims provider and the login screen will look like a ootb login screen. Cheers,SKM

Views

112

Like

1

Replies

0
Re: Sign in with Adobe - Asset Link configuration -AEM Au...
Avatar

skmAem

skmAem
- Adobe Experience Manager Assets
@nitinjl We had the same issue and it was confusing the users as to which option to choose to login with. I have found a config that comes with the asset link config package that causes the login screen to show the option to "Sign in with Adobe". Open up config file /apps/system/config/com.adobe.granite.auth.oauth.provider-aal-2019-04.config in crxde and comment out line 11: oauth.config.id="ims". After that go to http://:/system/console/bundles and search for bundle "Adobe Granite IMSAuthentica...

Views

112

Like

1

Replies

0
Re: Remove replicate permission for administrators - AEM 6.4
Avatar

skmAem

skmAem
- Adobe Experience Manager
Thanks @Shashi_Mulugu, We will follow this approach to create custom admin group and assign permissions accordingly. Best Regards,SKM

Views

997

Likes

0

Replies

0
Re: Remove replicate permission for administrators - AEM 6.4
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi @ArpitVarshney, when you say "admin" account, do you mean anyone in the administrators group or the ootb "admin" account? Thanks & Regards,SKM

Views

1.5K

Likes

0

Replies

0
Re: Remove replicate permission for administrators - AEM 6.4
Avatar

skmAem

skmAem
- Adobe Experience Manager
If it is not possible to prevent replication through permissions, is it possible to prevent it through touch ui/granite for everyone for a specific folder in dam? Any suggestions for this approach?

Views

1.5K

Likes

0

Replies

2
Re: Remove replicate permission for administrators - AEM 6.4
Avatar

skmAem

skmAem
- Adobe Experience Manager
@hamidk92094312 When I denied the replicate permission through useradmin, i can see that the deny for crx:replicate action for administrators group in crxde access control tab. Pls see the screenshot. But it still allows a user in the administrators group to replicate assets. @Shashi_Mulugu & @ArpitVarshney , I agree that we should have followed the setup as you mentioned, but unfortunately I recently joined this project and they already have several power users added under administrators group ...

Views

1.5K

Like

1

Replies

2
Remove replicate permission for administrators - AEM 6.4
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hello AEM Gurus, We have a requirement to prevent everyone (including administrators) from replicating assets from a certain path under /content/dam. I have removed replicate permission for this path (eg /content/dam/testfldr) for all of the groups including the administrators group. But users in this administrators group are still able to replicate the assets under this path. When I see the permissions for administrators in useradmin for /content/dam/testfldr path, it has a *! markup next to th...

Views

4.3K

Like

1

Replies

10
Re: HttpPost to AEM 6.4 Author instance using Assets api...
Avatar

skmAem

skmAem
- Adobe Experience Manager
Thanks Shashi to pointing to the root cause of the issue. I stumbled upon this link: https://github.com/AdobeDocs/experience-manager-65.en/blob/master/help/assets/assets-api-content-fragments.md about half an hour ago and saw the same thing that you need to exclude /content/dam from the uri. I was about to update this question and I saw your message. In Assets api documentation, they should mention that omit /content/dam from the uri. Thanks again Shashi for looking into this!!-SKM

Views

2.3K

Like

1

Replies

0
Re: HttpPost to AEM 6.4 instance using Assets api through...
Avatar

skmAem

skmAem
- Adobe Experience Manager
I have tried everything I can think of. Added CSRF token in the header of the post request after getting it using http://localhost:4602/libs/granite/csrf/token.json using this code: HttpPost postRequest = new HttpPost(uri); postRequest.addHeader("content-type", asset.getMimeType()); postRequest.addHeader("X-CSRF-Token", "eyJ ...g");I have tried to remove POST from the Filter Methods of the "Adobe Granite CSRF Filter" as well as from the Filter Methods of the "Apache Sling Referrer Filter" config...

Views

2.3K

Like

1

Replies

0
Re: HttpPost to AEM 6.4 instance using Assets api through...
Avatar

skmAem

skmAem
- Adobe Experience Manager
Hi Ka,I did refer to that article and got some ideas about using httpclient to send the assets, but that article does not have any examples regarding how to access those assets api through java. Also in my code I am creating httpclient using admin:admin credentials, does that not work? Do you have any java code snippets to perform the post operation? Thanks,SKM

Views

2.5K

Like

1

Replies

0
Likes from