dspace7 + angular login error

68 views
Skip to first unread message

Stefan Fritzsche

unread,
Sep 20, 2018, 2:49:45 AM9/20/18
to DSpace Technical Support
Dear members,

i use a docker container based on the node:8 image to create a test
instance of dspace 7 and the angular app.  I start Angular with the call

yarn start:dev

When I login with the UI I get the following error message

Cannot read property 'authenticated' of undefined

With every call of the UI yarn gives the following error

Error: The server returned an invalid object
    at
DSOResponseParsingService.BaseResponseParsingService.addToObjectCache
(/angular-src/dist/server.js:65296:19)
    at DSOResponseParsingService.BaseResponseParsingService.cache
(/angular-src/dist/server.js:65291:18)
    at DSOResponseParsingService.BaseResponseParsingService.process
(/angular-src/dist/server.js:65236:22)
    at DSOResponseParsingService.parse
(/angular-src/dist/server.js:73213:38)
    at MapSubscriber.project (/angular-src/dist/server.js:147350:234)
    at MapSubscriber._next
(/angular-src/node_modules/rxjs/operators/map.js:79:35)
    at MapSubscriber.Subscriber.next
(/angular-src/node_modules/rxjs/Subscriber.js:90:18)
    at CatchSubscriber.Subscriber._next
(/angular-src/node_modules/rxjs/Subscriber.js:126:26)
    at CatchSubscriber.Subscriber.next
(/angular-src/node_modules/rxjs/Subscriber.js:90:18)
    at MapSubscriber._next
(/angular-src/node_modules/rxjs/operators/map.js:85:26)


The configuration file of the angular app environment.dev.js:

module.exports = {
  // Angular Universal server settings.
  ui: {
    ssl: false,
    host: '0.0.0.0',
    port: 3000,
    // NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
    nameSpace: '/'
  },
  // The REST API server settings.
  rest: {
    ssl: false,
    host: 'localhost',
    port: 8080,
    // NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
    nameSpace: '/spring-rest/api'
  },
...

I would be grateful if you could tell me what caused the error.

Regards

--
Stefan Fritzsche
Fachinformatiker/digitale Archivierung

Technische Universität Dresden
Zentrum für Informationsdienste und Hochleistungsrechnen
Abt: Operative Prozesse und Systeme
01062 Dresden

Tel.: +49 351 463-33212
E-Mail: stefan.f...@tu-dresden.de

Tim Donohue

unread,
Sep 20, 2018, 11:27:38 AM9/20/18
to Stefan Fritzsche, DSpace Technical Support
Hi Stefan,

Authentication from the (in development) DSpace 7 Angular UI was accidentally broken in a recent commit. My suspicion is that you may be hitting this bug.  We have a fix that is in progress at: https://github.com/DSpace/dspace-angular/pull/290  You are welcome to test the fix and help provide feedback.  

In any case, I expect this to be fixed in the latest codebase soon -- the fix was just posted today and is just waiting on review(s).

- Tim

--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org
Reply all
Reply to author
Forward
0 new messages