crx/packmgr/update.jsp 404 | Community
Skip to main content
evgenyb81780887
Level 2
December 19, 2018

crx/packmgr/update.jsp 404

  • December 19, 2018
  • 3 replies
  • 8244 views

Hi everyone,

I run into an issue with crx/packmgr/update.jsp. I try to update my package using python and requests.

params_aempage = {

        'groupName': group_name,

        'packageName': package_aempage,

        'path': '/etc/packages/{0}/{1}.zip'.format(group_name, package_aempage),

        'filter': json.dumps(cq_list),

        '_charset_': 'utf-8'

    }

url_update = 'my_url/crx/packmgr/update.jsp'

response = requests.get(url_update, data=json.dumps(params_aempage), headers=headers)

I receive 415 error,I understand why this error occur because  json file which I try to send can be large.

However when change method get to be post  I get 404 . So I have now Idea how I can avoid it.What can you recommend?

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

smacdonald2008
Level 10
December 19, 2018

Checking internally if this is recommended way to perform this use case.

evgenyb81780887
Level 2
December 30, 2018

According to this link Adobe Experience Manager (AEM) API   should be good I can use method POST for /crx/packmgr/update.jsp but I face 404  when method get works fine

evgenyb81780887
Level 2
December 30, 2018

Yes, I also noticed  '/crx/packmgr/update.jsp' doesn't work for 6.4

Adobe Experience Manager (AEM) API​ is an old swagger link for OAK 1.2+ which still works in AEM 6.1

6.3 and 6.4 docs, Using cURL with AEM, do not mention about this use case. I'm not sure if updating filters is still supported. Probably something for Scott/team to comment on.


I can update only with method GET however sometimes I run into 414 error, it happens cuz url too long I pass to many roots to update.I changed method GET to POST which doesn't work I get 404 error.

edubey
Level 10
December 19, 2018

Are you trying to update package details like name, description, group from external application. Make sure to provide login-token or authenticate with repository

More details will be helpful.

evgenyb81780887
Level 2
December 19, 2018

I do provide login credential (login, password).I  try to send this dictionary

params_aempage = {

        'groupName': group_name,

        'packageName': package_aempage,

        'path': '/etc/packages/{0}/{1}.zip'.format(group_name, package_aempage),

        'filter': json.dumps(cq_list),

        '_charset_': 'utf-8'

    }

it works with method get if the dictionary is small but does not  work if the dictionary is huge.I change method get to post and I get 404.

September 16, 2022

For AEM 6.3 and above, please follow the below method for adding filters as the curl to http://localhost:4502/crx/packmgr/update.jsp is giving 404.


https://gist.github.com/nateyolles/dd4ebe0a6b83c369029b?permalink_comment_id=2329947#gistcomment-2329947