Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating a password using OCS Share API changes the share ID #10671

Closed
Azelphur opened this issue Aug 27, 2014 · 5 comments
Closed

Updating a password using OCS Share API changes the share ID #10671

Azelphur opened this issue Aug 27, 2014 · 5 comments

Comments

@Azelphur
Copy link

If you make an API call using the OCS Share API and set a password on a share, it appears to change the share ID. Not sure if this is intended or not.

Paging @PVince81 as requested.

@PVince81
Copy link
Contributor

@schiesbn can you have a look ? If I remember well you did address something similar recently ?

@PVince81
Copy link
Contributor

This seems to happen in the web UI as well.

  1. Open share dropdown
  2. Set expiration date first
  3. Close then reopen the dropdown: date is there
  4. Set a password
  5. Close then reopen the dropdown: date is gone

@MTRichards MTRichards added this to the 2014-sprint-04-next milestone Sep 5, 2014
@craigpg craigpg modified the milestones: 2014-sprint-05-next, 2014-sprint-04-current Sep 15, 2014
@craigpg craigpg modified the milestones: 2014-sprint-06-next, 2014-sprint-05-current Sep 29, 2014
@craigpg craigpg modified the milestones: 2014-sprint-07-next, 2014-sprint-06-current Oct 12, 2014
@craigpg craigpg modified the milestones: 2014-sprint-08-next, 2014-sprint-07-current Oct 27, 2014
@craigpg craigpg modified the milestones: 2014-sprint-09-next, 2014-sprint-08-current Nov 10, 2014
LukasReschke added a commit that referenced this issue Nov 17, 2014
This PR removes phpass and migrates to the new Hasher interface.

Please notice that due to #10671 old hashes are not updated but the hashes are backwards compatible so this shouldn't hurt.
Once the sharing classes have a possibility to update the passwords of single shares those methods should be used within the newHash if block.
@DeepDiver1975 DeepDiver1975 modified the milestones: 2014-sprint-09-next, backlog Jan 31, 2015
@PVince81 PVince81 modified the milestones: 8.1-next, backlog Feb 4, 2015
@PVince81
Copy link
Contributor

PVince81 commented Feb 4, 2015

@DeepDiver1975 moved to 8.1

@rullzer
Copy link
Contributor

rullzer commented Mar 13, 2015

WIP PR in #14868

@MorrisJobke
Copy link
Contributor

Fixed in #14987

@MorrisJobke MorrisJobke modified the milestones: 8.1-current, 8.2-next Apr 8, 2015
yparam98 added a commit to yparam98/core that referenced this issue Sep 19, 2018
line(s) 143-145

removed it

code before:

    * to update the share's password. (for example `$share->updatePassword($password)`
	    				 *
		    			 * @link owncloud#10671
			    		 */
				    	if (!empty($newHash)) {
				    	}
				    	//
	    			} else {
	    				return false;
felixheidecke pushed a commit that referenced this issue Oct 31, 2018
line(s) 143-145

removed it

code before:

    * to update the share's password. (for example `$share->updatePassword($password)`
	    				 *
		    			 * @link #10671
			    		 */
				    	if (!empty($newHash)) {
				    	}
				    	//
	    			} else {
	    				return false;
@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants