talk@lists.collectionspace.org

Targeted discussion among implementers and between implementers and the CollectionSpace development team

View all threads

SUBSCRIBE - Help - Can't change default immutable passwords

RR
RPG Research Staff
Fri, Jan 8, 2021 8:31 AM

Manual installation on Ubuntu 18.04.
Up and running, with just core services. Able to login via web interface
with default admin login.

But unable to change the admin password.

Following the instructions here:
https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/1545307067/Changing+the+Password+of+an+Immutable+Account

Get error:

cspace@rpgrhip1:~/collectionspace-source$ curl -X PUT
http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118
-i -u admin@core.collectionspace.org:Administrator -H "Content-Type:
application/xml" -T myAccountUpdate.xml HTTP/1.1 100

HTTP/1.1 400
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html
Content-Length: 470
Date: Fri, 08 Jan 2021 08:23:12 GMT
Connection: close

javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://catalog.rpgmuseum.org:8180/services/account",
local:"accounts_common"). Expected elements are
<{http://collectionspace.org/services/jaxb}abstract-common-list>,<{http://collectionspace.org/services/account}accounts-common-list>,<{http://collectionspace.org/services/account}accounts_common>,<{http://collectionspace.org/services/account}tenant>,<{http://collectionspace.org/services/account}tenants-list>cspace@rpgrhip1:~/collectionspace-source$

I wasn't able to find any helpful suggestions via general web search.
Appreciate any help possible.

Any suggestions?

Thank you,
-Hawke

Manual installation on Ubuntu 18.04. Up and running, with just core services. Able to login via web interface with default admin login. But unable to change the admin password. Following the instructions here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/1545307067/Changing+the+Password+of+an+Immutable+Account Get error: cspace@rpgrhip1:~/collectionspace-source$ curl -X PUT http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118 -i -u admin@core.collectionspace.org:Administrator -H "Content-Type: application/xml" -T myAccountUpdate.xml HTTP/1.1 100 HTTP/1.1 400 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html Content-Length: 470 Date: Fri, 08 Jan 2021 08:23:12 GMT Connection: close javax.xml.bind.UnmarshalException: unexpected element (uri:"http://catalog.rpgmuseum.org:8180/services/account", local:"accounts_common"). Expected elements are <{http://collectionspace.org/services/jaxb}abstract-common-list>,<{http://collectionspace.org/services/account}accounts-common-list>,<{http://collectionspace.org/services/account}accounts_common>,<{http://collectionspace.org/services/account}tenant>,<{http://collectionspace.org/services/account}tenants-list>cspace@rpgrhip1:~/collectionspace-source$ I wasn't able to find any helpful suggestions via general web search. Appreciate any help possible. Any suggestions? Thank you, -Hawke
RL
Ray Lee
Fri, Jan 8, 2021 9:09 PM

Hi Hawke,
It looks like you changed the namespace URI of the accounts_common element in your XML payload. You'll want to leave that as shown:

<ns2:accounts_common xmlns:ns2="http://collectionspace.org/services/account">

Everything else looks good.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf of RPG Research Staff rpgresearcher@gmail.com
Sent: Friday, January 8, 2021 3:31 AM
To: talk@lists.collectionspace.org
Subject: [Talk] SUBSCRIBE - Help - Can't change default immutable passwords

Manual installation on Ubuntu 18.04.
Up and running, with just core services. Able to login via web interface
with default admin login.

But unable to change the admin password.

Following the instructions here:
https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/1545307067/Changing+the+Password+of+an+Immutable+Account

Get error:

cspace@rpgrhip1:~/collectionspace-source$ curl -X PUT
http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118
-i -u admin@core.collectionspace.org:Administrator -H "Content-Type:
application/xml" -T myAccountUpdate.xml HTTP/1.1 100

HTTP/1.1 400
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html
Content-Length: 470
Date: Fri, 08 Jan 2021 08:23:12 GMT
Connection: close

javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://catalog.rpgmuseum.org:8180/services/account",
local:"accounts_common"). Expected elements are
<{http://collectionspace.org/services/jaxb}abstract-common-list>,<{http://collectionspace.org/services/account}accounts-common-list>,<{http://collectionspace.org/services/account}accounts_common>,<{http://collectionspace.org/services/account}tenant>,<{http://collectionspace.org/services/account}tenants-list>cspace@rpgrhip1:~/collectionspace-source$

I wasn't able to find any helpful suggestions via general web search.
Appreciate any help possible.

Any suggestions?

Thank you,
-Hawke


Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Hi Hawke, It looks like you changed the namespace URI of the accounts_common element in your XML payload. You'll want to leave that as shown: <ns2:accounts_common xmlns:ns2="http://collectionspace.org/services/account"> Everything else looks good. Ray ═ Ray Lee CollectionSpace Senior Developer LYRASIS ray.lee@lyrasis.org ________________________________________ From: Talk <talk-bounces@lists.collectionspace.org> on behalf of RPG Research Staff <rpgresearcher@gmail.com> Sent: Friday, January 8, 2021 3:31 AM To: talk@lists.collectionspace.org Subject: [Talk] SUBSCRIBE - Help - Can't change default immutable passwords Manual installation on Ubuntu 18.04. Up and running, with just core services. Able to login via web interface with default admin login. But unable to change the admin password. Following the instructions here: https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/1545307067/Changing+the+Password+of+an+Immutable+Account Get error: cspace@rpgrhip1:~/collectionspace-source$ curl -X PUT http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118 -i -u admin@core.collectionspace.org:Administrator -H "Content-Type: application/xml" -T myAccountUpdate.xml HTTP/1.1 100 HTTP/1.1 400 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0 X-XSS-Protection: 1; mode=block X-Frame-Options: DENY X-Content-Type-Options: nosniff Content-Type: text/html Content-Length: 470 Date: Fri, 08 Jan 2021 08:23:12 GMT Connection: close javax.xml.bind.UnmarshalException: unexpected element (uri:"http://catalog.rpgmuseum.org:8180/services/account", local:"accounts_common"). Expected elements are <{http://collectionspace.org/services/jaxb}abstract-common-list>,<{http://collectionspace.org/services/account}accounts-common-list>,<{http://collectionspace.org/services/account}accounts_common>,<{http://collectionspace.org/services/account}tenant>,<{http://collectionspace.org/services/account}tenants-list>cspace@rpgrhip1:~/collectionspace-source$ I wasn't able to find any helpful suggestions via general web search. Appreciate any help possible. Any suggestions? Thank you, -Hawke _______________________________________________ Talk mailing list Talk@lists.collectionspace.org http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
HR
Hawke R
Fri, Jan 8, 2021 10:05 PM

Ah! Thank you. So, I guess I was mistakenly treating the namespace uri as a
connection uri.
Changing that as you listed resolved it.
Now onward to the next steps in setting this all up.
Thanks kindly!

On Fri, Jan 8, 2021 at 1:10 PM Ray Lee ray.lee@lyrasis.org wrote:

Hi Hawke,
It looks like you changed the namespace URI of the accounts_common element
in your XML payload. You'll want to leave that as shown:

<ns2:accounts_common xmlns:ns2="
http://collectionspace.org/services/account">

Everything else looks good.

Ray


Ray Lee
CollectionSpace Senior Developer
LYRASIS
ray.lee@lyrasis.org


From: Talk talk-bounces@lists.collectionspace.org on behalf of RPG
Research Staff rpgresearcher@gmail.com
Sent: Friday, January 8, 2021 3:31 AM
To: talk@lists.collectionspace.org
Subject: [Talk] SUBSCRIBE - Help - Can't change default immutable passwords

Manual installation on Ubuntu 18.04.
Up and running, with just core services. Able to login via web interface
with default admin login.

But unable to change the admin password.

Following the instructions here:

https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/1545307067/Changing+the+Password+of+an+Immutable+Account

Get error:

cspace@rpgrhip1:~/collectionspace-source$ curl -X PUT

http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118
-i
http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118-i
-u admin@core.collectionspace.org:Administrator -H "Content-Type:
application/xml" -T myAccountUpdate.xml HTTP/1.1 100

HTTP/1.1 400
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: text/html
Content-Length: 470
Date: Fri, 08 Jan 2021 08:23:12 GMT
Connection: close

javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://catalog.rpgmuseum.org:8180/services/account",
local:"accounts_common"). Expected elements are
<{http://collectionspace.org/services/jaxb}abstract-common-list>,<{
http://collectionspace.org/services/account}accounts-common-list>,<{
http://collectionspace.org/services/account}accounts_common>,<{
http://collectionspace.org/services/account}tenant>,<{
http://collectionspace.org/services/account}tenants-list>cspace@rpgrhip1
:~/collectionspace-source$

I wasn't able to find any helpful suggestions via general web search.
Appreciate any help possible.

Any suggestions?

Thank you,
-Hawke


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

--
-Hawke Robinson
"I am my kids' dad"
http://www.hawkenterprising.com

Ah! Thank you. So, I guess I was mistakenly treating the namespace uri as a connection uri. Changing that as you listed resolved it. Now onward to the next steps in setting this all up. Thanks kindly! On Fri, Jan 8, 2021 at 1:10 PM Ray Lee <ray.lee@lyrasis.org> wrote: > Hi Hawke, > It looks like you changed the namespace URI of the accounts_common element > in your XML payload. You'll want to leave that as shown: > > <ns2:accounts_common xmlns:ns2=" > http://collectionspace.org/services/account"> > > Everything else looks good. > > Ray > > ═ > Ray Lee > CollectionSpace Senior Developer > LYRASIS > ray.lee@lyrasis.org > > ________________________________________ > From: Talk <talk-bounces@lists.collectionspace.org> on behalf of RPG > Research Staff <rpgresearcher@gmail.com> > Sent: Friday, January 8, 2021 3:31 AM > To: talk@lists.collectionspace.org > Subject: [Talk] SUBSCRIBE - Help - Can't change default immutable passwords > > Manual installation on Ubuntu 18.04. > Up and running, with just core services. Able to login via web interface > with default admin login. > > But unable to change the admin password. > > Following the instructions here: > > https://collectionspace.atlassian.net/wiki/spaces/DOC/pages/1545307067/Changing+the+Password+of+an+Immutable+Account > > Get error: > > cspace@rpgrhip1:~/collectionspace-source$ curl -X PUT > > http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118 > -i > <http://catalog.rpgmuseum.org:8180/cspace-services/accounts/7a2adec3-fb8a-4eb7-9ee3-039d64f9c118-i> > -u admin@core.collectionspace.org:Administrator -H "Content-Type: > application/xml" -T myAccountUpdate.xml HTTP/1.1 100 > > HTTP/1.1 400 > Cache-Control: no-cache, no-store, max-age=0, must-revalidate > Pragma: no-cache > Expires: 0 > X-XSS-Protection: 1; mode=block > X-Frame-Options: DENY > X-Content-Type-Options: nosniff > Content-Type: text/html > Content-Length: 470 > Date: Fri, 08 Jan 2021 08:23:12 GMT > Connection: close > > javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://catalog.rpgmuseum.org:8180/services/account", > local:"accounts_common"). Expected elements are > <{http://collectionspace.org/services/jaxb}abstract-common-list>,<{ > http://collectionspace.org/services/account}accounts-common-list>,<{ > http://collectionspace.org/services/account}accounts_common>,<{ > http://collectionspace.org/services/account}tenant>,<{ > http://collectionspace.org/services/account}tenants-list>cspace@rpgrhip1 > :~/collectionspace-source$ > > > > I wasn't able to find any helpful suggestions via general web search. > Appreciate any help possible. > > Any suggestions? > > Thank you, > -Hawke > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > > _______________________________________________ > Talk mailing list > Talk@lists.collectionspace.org > > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org > -- -Hawke Robinson "I am my kids' dad" http://www.hawkenterprising.com