Coder Social home page Coder Social logo

tpe-paw's People

Contributors

acrespo avatar champo avatar dariosus avatar esneider avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

acrespo dariosus

tpe-paw's Issues

Logout invalidations

After invalidating the session in the logout, it is not necessary to remove the user attribute from there

Migrate SQL files

Make sure both create.sql and changelog.sql are up to date. Also create a new version of insert.sql

Image storage

Currently images are stored in the fs, they should be stored in the db

Log to a file

Change the log4j config to log errors to a file to be able to debug in tomcat (the not-embedded one).

Use Objects instead of ids (as parameters)

The following functions should receive a whole object, not just an id:

-PictureService.getByPropID
-PictureService.delete
-PictureService.getProperties
-PictureService.checkOwner
-PictureDAO.delete
-PropertyDAO.getProperties
-PropertyDAO.checkOwnership

(check other methods)

Remembering previous page to login is bugged...

It seems that there is an issue with the Permission Filter and the redirect that its doing. The user is logged correctly but the redirection fails and throws an Exception. It seems to happen only when coming from "/" (localhost:9090).

Database connection Error

If there is a problem with the database connection it shous a NPE on every page. You should see a more friendly message

Entity entity

We should create an Entity class which only has an ID. Every other entity extends from this class.

Mistery

There is no style right now. We should spice things up with a little bit of css magic

Remember me

The login form needs the remember me feature.

Validations in the services

Property (I think this same thing is happening in pictures) should validate the data in the services when updating

Objects instead of ids

Pictures should have a Property not a propertyId

Properties should have a User not a UserID

Checks in JDCBUserDAO

The existence of a user is checked in the dao by catching an exception and analyzing it.

The correct query should be done to check the existance and then the insert

Default constructors

There should not be default constructors. This applies for clases Picture, Property and User

User really created?

Your user has been successfully registered! was shown on the page but tomcat says:

29 [http-9090-1] WARN ar.edu.itba.paw.grupo1.dao.JDBCUserDao - Caught SQLException while trying to register user.
org.postgresql.util.PSQLException: ERROR: permission denied for relation users
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:360)
at ar.edu.itba.paw.grupo1.dao.JDBCUserDao.register(JDBCUserDao.java:43)
at ar.edu.itba.paw.grupo1.service.UserServiceImpl.register(UserServiceImpl.java:30)
at ar.edu.itba.paw.grupo1.controller.RegisterServlet.doPost(RegisterServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at ar.edu.itba.paw.grupo1.filter.SessionFilter.doFilter(SessionFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

SearchFilter class

There should be a class representing the filters state when performing a search.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.